Please Turn On Java Script To Access This Site.

C Institute | Questions


Previous Topic : Operator precedence and associativity - 2Next Topic : if statement - 1

This section focuses on C interview questions, tricky questions, and puzzles, and viva questions based on “operator precedence and associativity”. 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. It will improve their understanding of C Language. Here is a listing of C questions and puzzles on “operator precedence and associativity” along with answers and/or explanations.

Q1: Arrange the operators according to their precedence: +, %, ->, =
Note: From left to right precedence should be highest to lowest.
a)  =, +, %, ->
b)  %, ->, =, +
c)  ->, %, +, =
d)  %, +, =, ->
Correct Answer : c
Explanation : Learn operator precedence and associativity


Previous Topic : Operator precedence and associativity - 2Next Topic : if statement - 1