0
Why it is not giving any output?
4 Respostas
+ 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'.
+ 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.
0
I think ASCII code of 1 is 49 and if u change the value to any value .it is not giving any output
0
ok I understand thank you