Home » C Programming » Structures » Question
  1. What will be the output of the following C code?
     #include <stdio.h>
    struct A
    {
    int n;
    char m;
    };
    int A = 150;
    int main()
    {
    struct A z;
    z.n = 150;
    printf("%d %d\n", z.n, A);
    }
    1. 150 150
    2. Compilation Error
    3. Garbage value
    4. Nothing
    5. None of these
Correct Option: A

150 150



Your comments will be displayed only after manual approval.