Changes

Jump to: navigation, search

C/C++ FAQ

245 bytes added, 19:38, 26 September 2012
no edit summary
'''A:''' Yes, however the latter is generally more accepted due to readability.
<br>'''Submitted by:''' Team 6 <br><br>
----
'''Q:''' Why can't void* variables be dereferenced?
<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>'''Submitted by:''' Team 6 <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? '''''Submitted by:''''' ''Gideon Thomas and Marie Karimizadeh'' '''A:'''----

Navigation menu