Vidyalelo
C Programming · Q174

Pointer

Programming · C Programming · question 174

Q174

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

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

Answer: Option C

Solution

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