some problem with pointers in c++ - TechRepublic
General discussion
August 8, 2004 at 05:52 AM
monukaushal

some problem with pointers in c++

by monukaushal . Updated 21 years, 10 months ago

main()
{
int x=10,*p,*q;
p=&x;
q=p+6;
cout<<"Contents of q is"<<*q; } my question is y the answer is 0 as the value must be an address.

This discussion is locked

All Comments