Operators and Enums in C Language Questions and Answers

Read tutorials from Operators and Enums in C Language


Question List:

1. What are enumerations?

2. What is difference between i++ and ++i?

3. S++ or S = S+1, which can be recommended to increment the value by 1 and why?

4. Where the address of operator (&) cannot be used for?

5. What is reminder for 5.0 % 2?

6. How many operators are there under the category of ternary operators?

7. Explain the use of comma operator (,).

8. How do you construct an increment statement or decrement statement in C?

9. What is the difference between the = symbol and == symbol?

10. What is the modulus operator?

11. Which of the following operators is incorrect and why? ( >=, <=, <>, ==)

12. What does the && operator do in a program code?

13. What is || operator and how does it function in a program?

14. Describe the order of precedence with regards to operators in C.

15. What is the difference between the expression "++a" and "a++"?

16. What are enumerated types?

17. What is the use of sizeof() function in C?

18. What is enum in C?

19. What is operator in C?

20. What are the different types of operator in C?

21. What is the syntax for ternary operator in C?

22. What is arithmetic operator in C?

23. What is assignment operator in C?

24. What is the relational operator in C?

25. What is the logical operator in C?

26. What is the bitwise operator in C?

27. What is the difference between pre increment operator and post increment operator?

28. What is the difference between pre decrement operator and post decrement operator?

29. What is & and * operators in C?

30. What value will be assigned to the variable X if a = 10, b = 20, c = 30, d = 40 for the expression X = a/b+c*d-c?

31. What is the value assigned to the following variables? int X1 = 13/3; int X2 = 13%3;