What will be the output of the following C code?
#include <stdio.h>
void main()
{
char *a[3][3] = {{"hey", "hi", "hello"}, {"his", "her", "hell"}
, {"hellos", "hi's", "hmm"}};
printf("%s", a[1][1]);
}
#include <stdio.h>
void main()
{
char *a[3][3] = {{"hey", "hi", "hello"}, {"his", "her", "hell"}
, {"hellos", "hi's", "hmm"}};
printf("%s", a[1][1]);
}A. her
B. hi
C. Compile time error
D. hi's
Answer: Option A
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