Post Test
- Which of the following data type will throw an error on modulus operation(%)?
- The operator that takes two operands are called
- What is the output of the C statement?
int main()
{
int a=0;
a = 4 + 4/2*5 + 20;
printf("%d", a);
return 0;
} - What is the output of the C Program?
int main()
{
int a= 3 + 5/2;
printf("%d", a);
return 0;
} - Operator % in C Language is called?
Char
Short
Int
Float
Unary operator
Binary operator
Ternary operator
None of them
}
40
4
34
54
3
2
5
Cannot assign an expression to variable at the declaration
Percentage Operator
Quotient Operator
Modulus
Division
