Ask Question
7 May, 08:19

What is the output of the following statement?

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

A.

15

B.

12

C.

63

D.

72

+3
Answers (1)
  1. 7 May, 11:17
    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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers