Ask Question
28 November, 06:58

What is the output of the following statement?

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

A.

15

B.

12

C.

63

D.

72

+1
Answers (1)
  1. 28 November, 09:50
    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?
Get an answer to your question ✅ “What is the output of the following statement? cout ...” in 📙 Computers & Technology if there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers