Vidyalelo
C Programming · Q66

Pointer

Programming · C Programming · question 66

Q66

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

A.
Run time error
B.
h h
C.
h e
Answer
D.
h l

Answer: Option C

Solution

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