Top

Discussion

What will be the output of the following C code?

#include 
    int main()
    {
        char str[10] = "hello";
        char *p = strrchr(str, 'l');
        printf("%c\n", *(++p));
    }

 

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

Answer: B

No answer description available for this question.

No comment is present. Be the first to comment.
Loading…

Post your comment