-
What will be the output of the following C code?
#include <stdio.h>
void main()
{
char *ch[20] = {"Welcome", "to", "Interview mania"};
int n = 0;
for (n = 0; n < 20; n++)
printf("%s", *(ch[n]));
}
-
- Welcome to Interview mania
- Compilation Error
- Garbage value
- Segmentation fault
- None of these
Correct Option: D
Segmentation fault