Vidyalelo
C Programming · Q204

Pointer

Programming · C Programming · question 204

Q204

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

A.
l e
Answer
B.
h e
C.
l l
D.
h l

Answer: Option A

Solution

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