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

Calculate the mass in grams of 0.800 mole of H2CO3. g
Read the quotation from the Omaha Platform. “The fruits of the toil of millions are boldly stolen to build up colossal fortunes for a few, unprecedented in the
What is one of Williams penns accomplishments
Based on the excerpt, what are three reasons President Truman provides for the development and use of atomic bombs by the United States?
The diagonals of a rhombus are _____. A) sometimes equal B) never congruent C) parallel D) perpendicular
Which of the following is a solution of x2 + 6x = –22? –3 ± isquare root of 13. –3 ± isquare root of 52. –6 ± isquare root of 13. –6 ± isquare root of 52.
What is the purpose of expository writing? a. It persuades someone? b. It describes something c. It identifies something d. It explains something
Which answer shows 0.05 written in scientific notation?
3x-5=2x+6 1 -1 11 -11
What was one method used by the federal government to carry out the Native American policies adopted in the late 1800s?