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

WELCOME



Your comments will be displayed only after manual approval.