What will be the output of the following C code?
#include <stdio.h>
void main()
{
char *a[3] = {"hello", "this"};
printf("%s", a[1]);
}
#include <stdio.h>
void main()
{
char *a[3] = {"hello", "this"};
printf("%s", a[1]);
}A. hello
B. Varies
C. this
D. Compile time error
Answer: Option C
Related Questions on Structure and Union
Which of the following can be a member of a structure?
A. Function
B. Another structure
C. Enumeration
D. All of the above

Join The Discussion