-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
char *ch[10] = {"Interview", "Mania", "World"};
int k = 0, L = 0;
ch[0] = "World";
for (k = 0; k < 10; k++)
printf("%s\n", ch[k]);
}
-
- Interview
- Mania
- World
- Garbage value
- Segmentation fault
Correct Option: E
Segmentation fault