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

Ajit



Your comments will be displayed only after manual approval.