Home » C Programming » Structures » Question
  1. What will be the output of the following C code? (Assuming size of int be 4)
    #include <stdio.h>
    struct Count
    {
    int n1;
    int n2;
    int n3;
    } cnt[] = {0};
    main()
    {
    printf("%d", sizeof(cnt));
    }
    1. 16
    2. 12
    3. 4
    4. Compilation Error
    5. None of these
Correct Option: B

12



Your comments will be displayed only after manual approval.