Question: 1. (5pt) Write an expression that evaluates to 1 a is the smalest among integers a, b, and c and to 0 otherwise. If you

 1. (5pt) Write an expression that evaluates to 1 a is

1. (5pt) Write an expression that evaluates to 1 a is the smalest among integers a, b, and c and to 0 otherwise. If you used any parentheses, you must tell whether each pair of parentheses is redundant, 2. (5pts) Write an expression that evaluates to O f x is between 10 and 100 and 1 otherwise. 3. (5pt) Give the output of the following program fragment. the value you give. Explain how alpha is computed to int alpha10. beta-5, ganna-3 alpha 7-beta+ gamma printf("%d %d %d ", alpha, beta, gamma); 4. (8pts) Give the values of x and y after the following statements are executed. Provide a fully detailed explanation about how you arrive at such values, including all the binary forms nt x-18 2: int y-12 S. 8pts) Give the value of variable named result after the two statements below are executed. Provide a fully detaled explanation about how you artive at this value, including all intermediate terms to be summed int result (x y) y/2 !y; =a + + 6. (10pts) Give the output from the following program fragment. Provide a fully detailed explanation about how you reach such an output, including all the binary forms intx-17, y-4

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!