Vidyalelo
C Programming · Q61

Pointer

Programming · C Programming · question 61

Q61

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

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

Answer: Option C

Solution

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