Home » C Programming » Structures » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    void main()
    {
    struct Clothes
    {
    int size;
    char Brand_name[50];
    };
    struct Clothes c;
    c.size = 40;
    printf("%d", c.size);
    }
    1. Compilation Error
    2. Garbage value
    3. 40
    4. Undefined behaviour
    5. None of these
Correct Option: C

40



Your comments will be displayed only after manual approval.