Operators
- Which among the following are the fundamental arithmetic operators, i.e, performing the desired operation can be done using that operator only?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: B
+, –
- Which of the following data type will throw an error on modulus operation(%)?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
float
- Which of the following is not an arithmetic operation?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: D
a != 10;
- What is the precedence of arithmetic operators (from highest to lowest)?
-
View Hint View Answer Discuss in Forum
NA
Correct Option: C
%, *, /, +, –
- What will be the output of the following C code?
#include <stdio.h>
void main()
{
int p = 5;
int q = ++p + p++ + --p;
printf("Value of q is %d", q);
}
-
View Hint View Answer Discuss in Forum
NA
Correct Option: A
Value of q is 19