Computer Science, asked by brahmaspacekerala, 4 months ago

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 Anonymous
0

Answer:

input and output structure.........

Explanation:

... ✌️... please make me brainliest

Answered by mindfulmaisel
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