Home » C++ Programming » Operators » Question
  1. What is the output of this program?
    #include 
    using namespace std;
    int main()
    {
    int p;
    p = 15 + 13 * 6;
    cout << p;
    return 0;
    }
    1. 93
    2. 15
    3. 13
    4. 6
    5. None of these
Correct Option: A

Because the * operator is having highest precedence, So it is executed first and then the + operator will be executed.



Your comments will be displayed only after manual approval.