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

Nothing



Your comments will be displayed only after manual approval.