1.

What will be the output of the following C code?

 #include  int main() { char str[10] = "hello"; char *str1 = "world"; strncat(str, str1, 9); printf("%s", str); }

A. helloworld
B. Undefined behaviour
C. helloworl
D. hellowor
Answer» B. Undefined behaviour


Discussion

No Comment Found

Related MCQs