C Language Interview Questions and Answers for Experienced - 10

Question: 46

What are the logical operators in C?

Logical operators are used to perform logical operations on the given expressions. There are 3 logical operators in C language. They are,

logical AND(&&)

logical OR(||)

logical NOT(!)

Question: 47

What is assignment operator in C?

Assignment operators are used to assign the values to the variables.

Assignment operators are =, +=, -=, /+, %= etc.

Question: 48

What is the relational operator in C?

Relational operators are used to find the relation between two variables. i.e. to compare the values of two variables in a C program.

Relational operators are >, <, >=, <=, ==, !=.

Question: 49

What are *and & operators means?

‘*’ operator means ‘value at the address’.

‘&’ operator means ‘address of’.

Question: 50

What is a Modulo Operator?

‘%’ is a modulus operator. It gives the remainder of an integer division.

Related Questions