Question: What will be printed after executing the following C++ code? int a=3, b=5, c=7, d=-2 ; if (d > 0) cout < < a +

  1. What will be printed after executing the following C++ code?

    int a=3, b=5, c=7, d=-2 ;

    if (d > 0)

    cout << a + b * c << endl;

    else

    cout << a * b - c << endl;

    1. -13

    2. 29

    3. 38

    4. 8

    5. NONE

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!