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

Manjesh Ojha



Your comments will be displayed only after manual approval.