Question: From the C program segment in Figure 2, find the output if the input is: 123456 7 8 #include struct nod{ int x,y; };
From the C program segment in Figure 2, find the output if the input is: 123456 7 8 #include struct nod{ int x,y; }; int main(void) { int 1,t; struct nod A,B,C,D; scanf("%d, %d, %d, %d",&A.x, &A.y,&l,&t ); B.X=A.x+1; 9 10 11 12 B.y=A.y; 13 C.x-B.x; 14 c.y=A.y+t; 15 D.X-A.x; 16 D.y-C.y; 17 18 19 20 21 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; 22 }
Step by Step Solution
There are 3 Steps involved in it
Title Output For supp... View full answer
Get step-by-step solutions from verified subject matter experts
