Question: Suppose that alpha is a double variable. Choose the value of alpha after the following statement executes: alpha = 14.0 + static_cast (15 / 2);

Suppose that alpha is a double variable. Choose the value of alpha after the following statement executes:

alpha = 14.0 + static_cast(15 / 2);

alpha = 21.0

alpha = 21.5

alpha = 22.0

alpha = 22.5

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!