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

the area of a sector of the circle with an arc measure of 45 degree and with a radius of 4 is?
Find the 40th term of this arithmetic sequence.
Comflict between Ralph and Jack quotes ?
A test tube containing CaCO₃ is heated until the entire compound decomposes. If the test tube plus calcium carbonate originally weighed 30.08 grams and the loss
What does karyote mean?
what did fascists believe was necessary to achieve order in a society
If the midpoint between (18, y) and (20, -15) is (19, -5), find the value of y.
Electrolysis of a dilute solution of aqueous sodium chloride results in the cathode product a. Sodium b. Hydrogen c. Chlorine d. Oxygen e. peroxide
A test tube containing CaCO₃ is heated until the entire compound decomposes. If the test tube plus calcium carbonate originally weighed 30.08 grams and the loss
who was not free in medieval England