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

When and where did the discovery of oil in spindletop occur?
A criminal profiler is seeking to create a profile and notes that a suspect liked to watch the fire trucks arrive at the fires that he set. What is this an exam
re write the star spangled banner lyrics in a way that a child can understand “Oh say can you see by the dawns early light?” “what so proudly we hailed at the
I will mark brainliest!!!!
If the volume of a gas at 0.5 atm changes from 150 mL to 75 mL, what is the new pressure?
Find the coordinates of the midpoint M of the segment with the given endpoints. Then find the distance between the two points. Round the distance to the nearest
Find the length of the line below
The retangular prism shows is made from cubs.Each cube is 1 cubic unit. What is the volume in cubic units
help ngnfkxkdkmdfmkdkfkfmmfkfkdjx​
Wiesel is currently a citizen of what country? What did he do there?