1.

Predict the output?#include <stdio.h>int fun(char *str1){char *str2 = str1;while(*++str1);return (str1-str2);}int main(){char *str = "GeeksQuiz";printf("%d", fun(str));return 0;}(A) 10(B) 9(C) 8(D) Random Number

Answer»


Discussion

No Comment Found

Related InterviewSolutions