Vidyalelo
C Programming · Q181

Pointer

Programming · C Programming · question 181

Q181

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

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

Answer: Option D

Solution

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