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

How much pure alcohol must be added to 400 ml of a 15% solution to make its strength 32%
what will be the effect on the loudness of sound if the amptitude is doubled and halved?
A cylinder has a radius of 30 ft and a height of 19 ft. What is the exact surface area of the cylinder?
A railway train 50 m long passes over a bridge 250 m long at the rate of 12 km/h.How long will it take completely pass over the bridge?
what is the equation of a parabola whose vertex is (-6,0) and whose graph is half as tall as y=x^2 and opens upside down?
How much pure alcohol must be added to 400 ml of a 15% solution to make its strength 32%
“Every segment of our population has a right to expect from . . . government a fair deal.”
How much pure alcohol must be added to 400 ml of a 15% solution to make its strength 32%
A pot is heated on a stove . Which process causes the metal handle of them pot to also become hot?
A railway train 50 m long passes over a bridge 250 m long at the rate of 12 km/h.How long will it take completely pass over the bridge?