Question
What is the output of this program?
#include
using namespace std;
int main()
{
int a;
a = 5 + 3 * 5;
cout
Answer: Option B
Was this answer helpful ?
Because the * operator is having highest precedence, So it is executed first and then the + operator will be executed.
Was this answer helpful ?
More Questions on This Topic :
Question 1. What is this operator called ?: ? ....
Submit Solution