Object Oriented Programming

1:

The declaration
int x ;
int &p=x ;

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

This remark is   

A.

true

B.

false

C.

sometimes true

D.

none of the above

 

Answer : 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.

Write your comments here:


Report Error
 

Option: A

Explanation : Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here. Explanation will come here.