Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    char *ptr1= "Interview Mania";
    char *ptr2 = ptr1;
    printf("%c %c", ptr2[0], ptr1[10]);
    }
    1. Interview Mania
    2. Compilation Error
    3. I M
    4. M I
    5. None of these
Correct Option: C

I M



Your comments will be displayed only after manual approval.