## Please Turn On Java Script To Access This Site.

C Institute | Questions

This section on C interview questions, tricky questions, and puzzles focuses on “Relational 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 “Relational operators” along with answers and/or explanations.

`Q1: Which one is not a relational operator in c?`
a)  <
b)  >
c)  ^
d)  ==
Explanation : The ^ is called bitwise XOR operator.

`Q2: How many relational operators are available in c?`
a)  6
b)  5
c)  4
d)  8
Explanation : In c we have 6 relational operators. And they are < , > <= , >= , != and == .

`Q3: In c language the relational operators always generates result in - `
a)  Either true or false
b)  Either 1 or 0
c)  Sometime in 1 or 0, sometimes in true or false
d)  Can generate any value.
Explanation : In c, all the relational operators always generates result in either 1 or 0. If the relation is satisfied then the result is 1 otherwise result is 0.

`Q4: Which have highest precedence`
a)  +
b)  *
c)  <
d)  >

`Q5: Relational operators cannot be used on ____________.`
a)  char
b)  array
c)  int
d)  structure