char a="A" ; int n=7; n+=a; What will be value of n?
Answers
Answered by
24
Answer:
Initially, a="A" and n=7
- Acii value of A- 65
n+=a i.e. n=n+a
Now, n is 7 and a is "A" so,
n=7+"A"
but n is of integer data type so "A" will get converted to its ASCII value i.e. 65
n=7+65
n=72
- ASCII values given in attachment.
Attachments:
Similar questions