Home » C Programming » Strings » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    char s[15] = "INTERVIEW";
    char *ptr = strrchr(s, 'R');
    printf("%c\n", *(++ptr));
    }
    1. R
    2. Compilation Error
    3. V
    4. Garbage value
    5. None of these
Correct Option: C

V



Your comments will be displayed only after manual approval.