+ 7

Is it possible?

Int a =97; Char b=a; Cout<<b; Answer is a

11th Apr 2019, 5:55 AM
Prashant Kumar
Prashant Kumar - avatar
7 Antworten
+ 5
Is it converted to ASCII values
11th Apr 2019, 6:10 AM
Prashant Kumar
Prashant Kumar - avatar
+ 4
Yes it is but only because the integer value of a is 97. Make variable a 98 and you will get a "b" Make variable a 99 and you will get a "c" https://code.sololearn.com/cbecgA1v8fQ0/?ref=app
11th Apr 2019, 6:09 AM
sneeze
sneeze - avatar
+ 3
If you make a program, that loops from 0 to 200, in each iteration changes the integer value to characters and print it, you'll get the logic.
11th Apr 2019, 8:09 AM
Seb TheS
Seb TheS - avatar
+ 2
Yes it is.
11th Apr 2019, 6:11 AM
sneeze
sneeze - avatar
11th Apr 2019, 7:40 AM
Sonic
Sonic - avatar
+ 2
That's a tricky question, but yes: the 'a' is actually a representation of the value of 97.
11th Apr 2019, 1:11 PM
Flavio Matias
Flavio Matias - avatar
0
97
18th Apr 2019, 12:57 PM
subhashini