Home » C Programming » Typedef » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    typedef struct MM
    {
    int n1, n2;
    }mm;
    int main()
    {
    struct MM m = {22, 44};
    mm k = m;
    printf("%d\n", k.n1);
    }
    1. Compilation Error
    2. 44
    3. 22
    4. Garbage value
    5. None of these
Correct Option: C

22



Your comments will be displayed only after manual approval.