Vidyalelo
C Programming · Q111

Pointer

Programming · C Programming · question 111

Q111

What will be the output of the following C code? #include int main() char **p = "hello", "hi", "bye"; printf("%s", (p)[0]); return 0;

A.
Compile time error
B.
Undefined behaviour
Answer
C.
hello
D.
Address of hello

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board