Home » C Programming » Structures » Question
  1. What will be the output of the following C code?
    #include <stdio.h>
    struct B
    {
    int m;
    char n;
    float t;
    };
    int B = 55;
    int main()
    {
    struct B z = {10, 99};
    printf("%f %d\n", z.t, B);
    }
    1. Compilation Error
    2. 0.000000 55
    3. Garbage value
    4. depends on compiler
    5. None of these
Correct Option: B

0.000000 55



Your comments will be displayed only after manual approval.