adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
struct test {
    int x;
    char y;
} test;

int main()
{
    test.x = 10;
    test.y = 'A';
    printf("%d %c", test.x,test.y);
    return 0;
}

a.

0.416666666666667

b.

garbage value garbage value

c.

Compilation Error

d.

None of these

Answer: (a).0.416666666666667

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. What is the output of this program?