Changes

Jump to: navigation, search

Assignment 2 (Release 0.2): Q & A

770 bytes added, 12:35, 5 November 2012
Q & A
'''A:''' Good observation! Declare the data parameter without using the const keyword. Indeed, the data parameter should NOT be declared as a const string because it could be EDITED! <br>
'''Answer Submitted by: pliu''' <br><br>
 
'''Q:''' What is the size of void pointer? <br>
'''A:''' Pointer variables always contain the address of variable.so size of pointer is independent of its type. Size of pointer depends on the environment. On 32-bit environment size of pointer is 4 bytes. <br>
'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 2 <br><br>
 
'''Q:''' Does declaring virtual function in class increase the size of object of class? <br>
'''A:''' Any class that is having virtual function has a vtable associated with it. So that class contains a vptr(virtual pointer) containing a base address of that vtable. Hence size of any object of that class is increased by one pointer variable. <br>
'''Submitted by:''' Shajinth Pathmakulaseelan and Auquib Rasul, Team 2 <br><br>
== Bug Reports ==

Navigation menu