Vidyalelo
C Programming · Q49

Pointer

Programming · C Programming · question 49

Q49

Find the output of the following program. void main() char *msg = "hi"; printf(msg);

A.
hi
Answer
B.
h
C.
hi followed by garbage value
D.
Error
E.
Garbage Value

Answer: Option A

Solution

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