Vidyalelo
C Programming · Q178

File Input Output

Programming · C Programming · question 178

Q178

What will be the output of the following C code? #include int main() char str[10] = "hello"; char *p = strrchr(str, 'l'); printf("%c ", *(++p));

A.
l
B.
o
Answer
C.
e
D.
Compilation error

Answer: Option B

Solution

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