Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Question 2 From the C program segment in Figure 2, find the output if the input is: a. 5, 10, 7,3 b. 100, 20, 100,
Question 2 From the C program segment in Figure 2, find the output if the input is: a. 5, 10, 7,3 b. 100, 20, 100, 55 c. 0, 0, 333, 222 [2 marks] [2 marks] [2 marks] 1 #include 2. 3 struct nod{ 4 int x,y; }; 5 6 7 8 9 10 11 12 13 14 15 int main(void) { int 1,t; struct nod A,B,C,D; scanf("%d, %d, %d, %d",&A.X, &A.y,&1,&t ); B.X=A.X+l; B.y=A.y; C.X=B.X; C.y=A.y+t; D.X=A.X; D.y=C.y; printf("Nod A: %d,%d ", A.x,A.y); printf("Nod B: %d, %d ", B.x, B.y); printf("Nod c: %d, %d ", C.x, C.y); printf("Nod D: %d, %d ", D.X, D.y); return 0; } 16 17 18 19 20 21 22
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started