Answered step by step
Verified Expert Solution
Link Copied!

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,

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Visual Basic6 Database Programming

Authors: John W. Fronckowiak, David J. Helda

1st Edition

ISBN: 0764532545, 978-0764532542

More Books

Students also viewed these Databases questions

Question

Write the properties of Group theory.

Answered: 1 week ago

Question

How is slaked lime powder prepared ?

Answered: 1 week ago

Question

Why does electric current flow through acid?

Answered: 1 week ago

Question

What is Taxonomy ?

Answered: 1 week ago