Home » C Programming » Pointers » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    struct color
    {
    int color_code;
    char color_name[30];
    };
    struct color c;
    c.color_code = 000004;
    printf("%s", c.color_name);
    }
    1. 000004
    2. Compilation Error
    3. Garbage value
    4. Nothing
    5. None of these
Correct Option: D

Nothing



Your comments will be displayed only after manual approval.