How will this behave - char p=NULL; char &q=p;?

Questions by sivagangadhar1983

Showing Answers 1 - 1 of 1 Answers

Internally NULL is defined as 0, this may varies compiler to compiler. so just think the above statement like this.
char p = 0;
char &q = p;

if you see output of q it will be 0. if we change it like
char p = 65;
char &q = p;

output of q would be 'A'.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions