Go4Expert Member
13Jul2009,17:43   #11
cerebrum's Avatar
also, why can not we access the data without this typecast , dereferencing the address of emp1:

cout<<*&emp1;
Mentor
14Jul2009,00:58   #12
xpi0t0s's Avatar
Because that will output an emp1, i.e. the whole object, not the int we're interested in.