1.

What will be the output of the following C code?
#include <stdio.h>
int main()
{
char s[11] = "hello";
char *s1 = " Interview Mania";
strncat(s, s1, 10);
printf("%s", s);
}

A. hello
B. Interview Mania
C. hello Interview Mania
D. hello Interview
E. None of these
Answer» D. hello Interview


Discussion

No Comment Found