simple question on C
Posted
by lego69
on Stack Overflow
See other posts from Stack Overflow
or by lego69
Published on 2010-06-05T22:59:28Z
Indexed on
2010/06/05
23:02 UTC
Read the original article
Hit count: 246
c
|programming
I have this snippet of the code
char *str = “123”;
if(str[0] == 1) printf("Hello\n");
why I can't receive my Hello
thanks in advance!
how exactly compiler does this comparison if(str[0] == 1)
?
© Stack Overflow or respective owner