C++
Programming and Technical
Programming
Technical
Give the output of following program segment with explanation.
main()
{int a=32, *x=&a;
char ch=65, &e=ch;
e+=a;
*x+=ch;
cout<
Read Solution (Total 4)
-
- e=e+a
e=65+32=97
*x=*x+ch
*x=32+97=129 - 9 years agoHelpfull: Yes(2) No(0)
- **//cout
- 10 years agoHelpfull: Yes(1) No(5)
- cout
- 10 years agoHelpfull: Yes(1) No(8)
- 129
a=32
e+=a; means e=65+32 than e=97
*x+=ch means *x=32+ch than *x=32+&e *x=129
- 9 years agoHelpfull: Yes(0) No(1)
C++ Other Question