1.

The output of the following statements is char ch[6]={‘e’, ‘n’, ‘d’, ‘\0’, ‘p’};printf(“%s”, ch);(A) endp(B) end0p(C) end(D) error  

Answer»

Correct option - (C) end

Explanation:-

printf statement will print end because string is terminated at “\0” and in array after d, we have null character. 



Discussion

No Comment Found

Related InterviewSolutions