Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    int main()
    {
    char *ch[21] = {"Interview", "Mania"};
    printf("%s", *(ch + 1));
    return 0;
    }
    1. Mania
    2. Interview
    3. Garbage value
    4. Compilation Error
    5. None of these
Correct Option: A

Mania



Your comments will be displayed only after manual approval.