adplus-dvertising
frame-decoration

Question

What is the output of this program?
#include <stdio.h>
struct test {
    int x = 0;
    char y = 'A';
};
int main()
{
    struct test t;
    printf("%d, %c", s.x, s.y);
    return 0;
}

a.

0

b.

Error

c.

garbage value garbage value

d.

None of these

Answer: (b).Error

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?