1.

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

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


Discussion

No Comment Found