Hi all,
i have the following program
the actual answer is 5. but from my calculation it should be 7 if i consider \0 as null as a single character and one for the last null character. Where i am going wrong somebody please show the concept to me, also if i apply a strlen(str) that also giving me not the expected result. how to decode this?Code:#include <stdio.h> main() { char str[]="S\065AB"; printf("\n%d", sizeof(str)); }
thanks in advance,
regards,
satya