+ 2

How are variables with certain datatypes interpreted?If they are interpreted based on asciivalue then can we add int,char(no.)?

13th Apr 2017, 5:53 PM
Abinaya
Abinaya - avatar
2 Answers
+ 3
Yes, you can add integers and characters together, and the integer value of a character reflects its ASCII character code. A char is nothing more than a single-byte integer as far as arithmetic is concerned.
13th Apr 2017, 5:57 PM
Squidy
Squidy - avatar
+ 2
Thank you squidy
13th Apr 2017, 6:03 PM
Abinaya
Abinaya - avatar