Pointers Q.1

0. The declaration
int x ;
int &p=x ;

is same as the declaration
int x,*p ;
p=&x ;

This remark is

  • Option : B
  • Explanation : In the first declaration, p is aliased to x. In the second case, p is a separate variable and it will have an address that is different from that of x.
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *