error in strcmp() function in c
Posted
by mekasperasky
on Stack Overflow
See other posts from Stack Overflow
or by mekasperasky
Published on 2010-04-19T17:00:47Z
Indexed on
2010/04/19
17:03 UTC
Read the original article
Hit count: 244
Filed under:
c
suppose i have a character array d[20] which has d[0]=i and d[1]=f ; then i assign null value d[2]='/0';
what should be the value of strcmp(d,"if") and why ? shouldnt it give me the value 0?
© Stack Overflow or respective owner