What is the output of C program with structures.?
int main()
{
struct tree
{
int h;
int W
A
};
struct tree tree1={10};
printf("%d", tree1.w);
printf("%d", tree1.h);
return 0;
3
ОА. Оо
B. 100
C010
0.10.10
Answers
Answered by
0
Answer:
input and output structure.........
Explanation:
... ✌️... please make me brainliest
Answered by
0
option C is the correct answer
Explanation:
- option C is the correct answer
- the given question has many errors, on correcting the given program we get,
int main()
{
struct tree
{
int h;
};
struct tree tree1;
tree1.h = 10;
#printing the height
printf("height=%d", tree1.h);
return 0;
- on implementing the C program, the output of C program with structures gives height = 10
- hence, option (c) height = 10 is the correct answer
Similar questions
English,
1 month ago
Accountancy,
1 month ago
Physics,
3 months ago
Business Studies,
9 months ago
Math,
9 months ago
English,
9 months ago