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

Base your answer on calculate the measure of and b
Solve the following system of equations. -3x+5y=-7 -7x-9y=25
Just this much.solve as soon as possible
Supply a suitable Simple Past or Past Perfect Tense
How does the valence bond theory describe a covalent bond formation? A.The valence bond theory explains that covalent bonds are formed inside an atom when inner
why are business office established​
could you help me with this? I am very bad at math i need help ​
Which of the following does a plant not need for photosynthesis? Carbon dioxide oxygen water sunlight
Approximate, in miles, the circumference of a circle with radius equal to 7/11 miles. (Use 22/7 to approximate .)
Which of the following statements about the Irish potato famine is true