What will be the output of the following code?
char string = "Hello";
if(sizeof(string) <= strlen(string))
Answer will be Zero as strlen() function always gives the actual length of string excluding '\0', but '\0' is always present at the end of string taking space in memory so it is counted in sizeof operator.
sizeof(string) = strlen(string)