Q:

Find out the Output int fun(char *str1) { char *str2 = str1; while(*++str1); return (str1-str2); } int main() { char *str = "geeksforgeeks"; printf("%d", fun(str)); getchar(); return 0; }

0

Find out the Output

int fun(char *str1) { char *str2 = str1; while(*++str1); return (str1-str2); } int main() { char *str = "geeksforgeeks"; printf("%d", fun(str)); getchar(); return 0; }

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

Correct Answer:

Output : 13

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

This question belongs to these collections

Similar questions


need a help?


find thousands of online teachers now