Operators
- subscript operator is used to access which elements?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
array
- Which operator is having the highest precedence in c++?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
Scope resolution operator
- What is the name of | operator?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
| operator is used to find the ‘or’ of given values.
- What is the associativity of add(+);
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
left to right
- 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;
}
-
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.