Nguyễn Cap Tuyến
New member
What will be the output of the following C code?
A. l
B. o
C. e
D. Compilation error
Code:
#include <stdio.h>
int main()
{
char str[10] = "hello";
char *p = strrchr(str, 'l');
printf("%c\n", *(++p));
}
B. o
C. e
D. Compilation error