Consider the following code snippet: #include <stdio.h> int main() { char…

PYQ IBPS SO CRP SPL-XII (2022)

Consider the following code snippet:

#include <stdio.h>

int main() {
    char arr[] = "FGHJKJGF";
    char *p = arr;

    printf("%c\n", *(p + 3));
    return 0;
}

What is the output of the above program?

  1. A.

    F

  2. B.

    G

  3. C.

    H

  4. D.

    J

  5. E.

    K

Attempted by 35 students.

Sign up free to check your answer

Sign up free

Explore the full course: Ibps So It Mains

Loading lesson…