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

WILL GIVE BRAINLIEST TO WHOEVER CAN SHOW THEIR WORK: .8900mm to km
Don's clothing advertised a clothing sale. On the first day, all the clothing was marked 1/10 off. On the second day, unsold items were marked 2/5, the third da
an owl taking over a fox den is an example of A. borrowing B. predation C. commensalism
I need help please!!!!!! Tom completed the problem below incorrectly. Explain what mistake he made. ALSO include the correct answer. 23 - 8.2 + 3 23 - 16 + 3 23
For a total magnification of 100x, what eyepiece and objective would be used? 5X eyepiece with a 100x objective 15x eyepiece with a 4x objective 10x eyepiece wi
Where can you find a grid system that uses longitude and latitude lines?
determine the area of the triangular ABC with AC =5cm and height DB=30mm​
Can someone explain how to do this?
The ________ proposed that slavery never exist in any territory the U.S. acquired as a result of the Mexican-American War. (proposed by Congressman David Wilmot
plz help me!!!!!!!!!!​