0
cerebrum's Avatar
Go4Expert Member
also, why can not we access the data without this typecast , dereferencing the address of emp1:

cout<<*&emp1;
0
xpi0t0s's Avatar, Join Date: Aug 2004
Mentor
Because that will output an emp1, i.e. the whole object, not the int we're interested in.