Home » C++ Programming » Operators » Question
  1. What is the output of this program?
    #include <iostream>
    using namespace std;
    int main()
    {
    int p = 5;
    int q = 15;
    int r = 35;
    int s = 7;
    int Res;
    Res = p + q * r / s;
    cout << Res << endl ;
    return 0;
    }
    1. 5
    2. 15
    3. 35
    4. 7
    5. 80
Correct Option: E

In this program, the value e is evaluated by precedence ad we got the output as 80.



Your comments will be displayed only after manual approval.