Ask Question
28 November, 00:49

What is the output of the following statement?

cout << 4 * (15 / (1 + 3)) << endl;

A.

15

B.

12

C.

63

D.

72

+2
Answers (1)
  1. 28 November, 00:57
    0
    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.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “What is the output of the following statement? cout ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers