What will be the output of the following C code? [code] #include <stdio.h> int main() { char str[10] = "hello";

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

Tìm kiếm

Back
Top