user2688 user2688
  • 23-08-2019
  • Computers and Technology
contestada

What is the output of the following statement?

cout << 4 * (15 / (1 + 3)) << endl;

A.
15

B.
12

C.
63

D.
72

Respuesta :

Mustela Mustela
  • 26-08-2019

Correct option is (B) that is 12.

Explanation:

In the given equation 4 * (15 / (1 + 3)), first it will calculate the inner most

bracket i.e (1+3) which equal to 4. then 15 is divided by 4 and give 3. After that

4 is multiplied by 3 and give 12. In this way the whole expression is calculated

and print 12 as output.

Answer Link

Otras preguntas

help please will give branilist : )
What would be the final elevation if a moth is flying at at 9 meters above the ground and changes by -4? a. 5 meters b. -5 meters c. 13 meters d. -13 meters
analysis shows the presence of 203 ug of cholesterol. what is the correct set up for conversion of mcg to kg
Movement of water though the membrane is called?​
What are the main disorders associated with cardiac muscle?
A gas occupies 2.5 L at 2.5 atm. What is the volume if the pressure changes to 1.5 atm?
There are 20 pieces of candy in the candy jar if I just ate 4 pieces what percent of the candy did I eat
A child and sled with a combined mass of 48.8 kg slide down a frictionless hill that is 7.05 m high. If the sled starts from rest, what is its speed at the bott
A 232 mL cup of whole milk contains about 27 mg of cholesterol. Express the cholesterol concentration of the milk in kilograms per cubic meter (kg/m3). choleste
given the function f(x)=4-2x: if the domain is -4,0,5 find the range