Question: What value is placed in sum? int sum = 10, price=100; sum += price>=100 ? price*2 : price; a. 10 b. 100 c. 200 d.

What value is placed in sum?

int sum = 10, price=100;

sum += price>=100 ? price*2 : price;

a. 10 b. 100 c. 200 d. 210

ANSWER: 210.

Very confused how to get this answer please explain in detial.

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!