1.

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

A. Segmentation fault
B. Compilation Error
C. Nothing
D. hello, Interview, Mania 23
E. None of these
Answer» E. None of these


Discussion

No Comment Found