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

60% of 10 help me ///////////
If x-3 is 4 more than w, then x is how much more than w?
Which of the following best explains why 1-butanol, CH₃CH₂CH₂CH₂OH, has a higher surface tension than its isomer, diethyl ether, CH₃CH₂OCH₂CH₃? (A) the higher d
(2x)(x) answer this please
What energy transformations are there in a Ferris Wheel?
Double my tens digit to get my one digit. Doble me and i am less then 50
the area of a circle 200 mm in diameter is approximately how many times greater than the area of circle 40 mm in diameter
0.6x-0.3y=-1.50.04x-0.02y=-0.1
What does the root word in contestants mean
show me the steps for solving this problem how many grams of O2 are required to burn 46.0 grams of C5H12