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

In an election, 471 people voted. Candidate B received 2/3 of the votes. How many votes did Candidate B received?
ian scores 44 out of 60 marks in a math test whats his score in 1 decimal place?
in Aztec society chocolate with widely available true or false
Find the original price. Discount: 20% Sale price: $75
Help me please thanks
the "untying of the plot" or the resolution of the play is the?
Which statement best shows a problem in the memoir Travels with Charley? For many years I have traveled in many parts of the world. But New York is no more Ame
You invest $1,600 in an account that pays an interest rate of 6.5%, compounded continuously. Calculate the balance of your account after 6 years. Round your an
What type of force slows you down as you slide across the floor? A. Strong nuclear force B. Friction C. Magnetic force D. Gravity
Sea stack sea arch an sea caves are all examples of land features created by