Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2. Look at the following code snippet: (1). What is the result of output_1, output_2 and output_3 ? (2 mark) (2). Explain why their values

2. Look at the following code snippet:
(1). What is the result of output_1, output_2 and output_3 ? (2 mark)
(2). Explain why their values are different. (2 mark)
image text in transcribed
3 2. Look at the following code snippet: int x=8, y=5, z=15; int output_1; float output_2; float temp, output_3; output_1 = X * y / z; output_2 = x * y / z; temp = x + y; output_3 = temp / z; printf("output_1 is %d. ", output_1); printf ("output_2 is %. ", output_2); printf("output_3 is %. ", output_3); Answer the two questions: (1). What is the result of output_1, output_2 and output_3? (2 mark) (2). Explain why their values are different. (2 mark)

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

Pro SQL Server Administration

Authors: Peter Carter

1st Edition

1484207106, 9781484207109

More Books

Students also viewed these Databases questions