-
What will be the output of the following C code?
#include <stdio.h>
int main()
{
char *str = "Interview, Mania\n";
char *strc = "Welcome to\n";
strcpy(strc, str);
printf("%s\n", strc);
return 0;
}
-
- Interview, Mania
- Welcome to
Interview, Mania - Undefined behaviour
- Crash/segmentation fault
- None of these
Correct Option: D
Crash/segmentation fault