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

Read the passage. John is extremely social. Whenever we go to parties together, he flies from person to person, busily making friends with everyone. Whi
Mr. Wilson has $3000in his bank account? Miss Nelson has 10 Times as much money in her bank account as Mr. Wilson has in his bank account. How much money does M
ab is perpendicular to cd . How many 90° angles are formed by the intersection?
I need help with this rounding question
The exact geographic location of a place on Earth is ____________.
You are caught in severe weather while boating. what should you do?
Could -2 be used as a base to rewrite 32? 64? Why or why not?
An anthropologist looking to understand the impact humans have had on the environment by studying rock formations, polar ice caps and glaciers is most likely pr
what is 40°C in °F? and how do you work out Celsius->Fahrenheit conversion, i’ve completely forgotten ‍♀️
WHATS THE DEFINITION OF GEOGRAPHY (ONLY 6-8 SENTENCES) URGENT