What will be the output of the following C code?
#include <stdio.h>
void main()
{
char a[10][5] = {"hi", "hello", "fellows"};
printf("%p\n", a);
printf("%p", a[0]);
}
#include <stdio.h>
void main()
{
char a[10][5] = {"hi", "hello", "fellows"};
printf("%p\n", a);
printf("%p", a[0]);
}
A. same address is printed
B. different address is printed
C. hello
D. hi hello fello
Answer: Option A
Join The Discussion