Operators


  1. subscript operator is used to access which elements?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    array


  1. Which operator is having the highest precedence in c++?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Scope resolution operator



  1. What is the name of | operator?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    | operator is used to find the ‘or’ of given values.


  1. What is the associativity of add(+);











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    left to right



  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. View Hint View Answer Discuss in Forum

    NA

    Correct Option: E

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