Vidyalelo
C Programming · Q241

Pointer

Programming · C Programming · question 241

Q241

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

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

Answer: Option D

Solution

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