-
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);
}
-
- Segmentation fault
- Compilation Error
- Interview, Mania
- hello Interview Mania
- None of these
Correct Option: A
Segmentation fault