Open main menu

CDOT Wiki β

Changes

C/C++ FAQ

No change in size, 20:32, 1 October 2012
no edit summary
<br>
'''A:''' The pointer can't be dereferenced, because the compiler will not know how much of the memory is devoted to that particular value. For example if one has 8 bytes in memory with values in it, they are interpreted differently as int (2x 4 byte ints) and double (1x 8byte double). Without a data type the value cannot be determined therefore casting must be done first.
<br>'''Question Submitted by:''' Team 6 (BTP300B) <br>
----
<br>
'''Q:''' Can a functional pointer be used to point to an overloaded function? If so, which function will it call when the pointer is dereferenced and why?
<br>'''Question Submitted by:''' Gideon Thomas and Marie Karimizadeh <br>
'''A:'''Function Pointer can be used to point to any function with the same signature as its own.<br>