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

Welcome To Interview Mania (null) (null) (null)



Your comments will be displayed only after manual approval.