This section on C interview questions, tricky questions, and puzzles focuses on “Arithmetic operators”. One shall practice these questions and puzzles to improve their C programming skills needed for various interviews (campus interviews, walk-in interviews, viva exams and company interviews), placements, entrance exams and other competitive exams. These programming questions can be attempted by anyone focusing on learning C Programming language. They can be a beginner, fresher, engineering graduate, engineering student, bca student, mca student, mcs students or an experienced IT professional. Here is a listing of C questions and puzzles on “Arithmetic operators” along with answers and/or explanations.
Q1: What will be the result of the following expression in c ?
Q2: What will be the result of the following expression?
Q3: Which arithmetic operator can not be applied on Real values in c?
Q4: Which is not an arithmetic operator in c?
Q6: What is the precedence of arithmetic operators (highest to lowest)?
operator before comma should be considered as higher precedence operator than the operator on the right hand side of comma.
Two operators which are not separated by comma should be considered as same precedence operator, and will be solved using associativity.
Q7: Which is not an arithmetic operation?
Q8: Which are the fundamental arithmetic operators.
Fundamental arithmetic operators: Operators from which we can perform all other arithmetic operations.
Q9: We can not apply Remainder (%) operator on which of the following datatype?
Q10: Which is the arithmetic operator that is used for calculating power (exponent value)?