What is Operator precedence? And how it will works in CPP?

Practice # 8.2 


 #include<iostream>

using namespace std;
int main(){
    // Here we practice operator precedence
    /*
    It is the prectice of operator precedence that will use
    to get correct output from operetors. It will work if we
    use correct expression of prcedence and assoivity. like
    which operator use first and which one is second.
    we will concern this from cpprefrence.com
    */
    int a=5, b=50;
    int c=(((a*4)+b)-20);
    cout<<c;


    return 0;
}

Comments