-
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;
}
-
- 5
- 15
- 35
- 7
- 80
Correct Option: E
In this program, the value e is evaluated by precedence ad we got the output as 80.