Operators and Expressions – Multiple Choice Questions (MCQs)
-
-
26. Which operator is used for equality comparison in C?
-
27. Which operator is used for inequality comparison in C?
-
28. Which operator is used for greater than comparison in C?
-
29. Which operator is used for less than comparison in C?
-
30. Which operator is used for greater than or equal to comparison in C?
-
31. Which operator is used for less than or equal to comparison in C?
-
32. What is the value of 'a' after the execution of the following code? `int a = 10; a += 5;`
-
33. What is the value of 'b' after the execution of the following code? `int b = 10; b -= 3;`
-
34. What is the value of 'c' after the execution of the following code? `int c = 5; c *= 2;`
-
35. What is the value of 'd' after the execution of the following code? `int d = 12; d /= 4;`
-
36. What is the value of 'e' after the execution of the following code? `int e = 10; e %= 3;`