7th Jun 2018, 8:26 AM
Bahubali
Bahubali - avatar
4 odpowiedzi
+ 6
https://ascii.cl/index.htm ASCII value != symbol. The symbol '1' has ASCII value 49, yes, but that's not what I'm saying. Your ASCII value 1 is the SOH symbol, which is invisible. Changing the value to ASCII values of visible symbols will show output. For instance: int ar[]={110,2,3,42}; char *p=(char *)ar; cout<<p[0]; clearly outputs 'n'.
7th Jun 2018, 8:59 AM
Hatsy Rei
Hatsy Rei - avatar
+ 4
The ASCII value 1 is the Start of Header (SOH) character. The program does give output, but you can't see it because control characters are like John Cena.
7th Jun 2018, 8:42 AM
Hatsy Rei
Hatsy Rei - avatar
0
I think ASCII code of 1 is 49 and if u change the value to any value .it is not giving any output
7th Jun 2018, 8:49 AM
Bahubali
Bahubali - avatar
0
ok I understand thank you
7th Jun 2018, 9:16 AM
Bahubali
Bahubali - avatar