Question: 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

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!