Vidyalelo
C Programming · Q207

Pointer

Programming · C Programming · question 207

Q207

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

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

Answer: Option B

Solution

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