Vidyalelo
C Programming · Q94

Pointer

Programming · C Programming · question 94

Q94

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

A.
Compile time error
B.
Undefined behaviour
C.
hello
Answer
D.
None of the mentioned

Answer: Option C

Solution

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