Vidyalelo
C Programming · Q110

Pointer

Programming · C Programming · question 110

Q110

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

A.
e h
B.
Compile time error
C.
h h
D.
h e
Answer

Answer: Option D

Solution

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