C Language INTERVIEW QUESTION & ANSWERS
76. |
What is meant by operator precedence? |
|
Operator precedence describes the order in which C evaluates different operators in a complex expression. |
77. |
What is an Operator? |
|
An operator is a symbol, which instructs the computer to perform the specified manipulation over some data. The rich set of operators available in C enable us to write efficient and concise programs and this fact serves to set C apart from any other programming languages. |
78. |
What are the types of operators in c? |
|
- Assignment operator
- Arithmetic operators
- Relational operators
- Logical operators
- Increment/Decrement operators
- Shorthand arithmetic assignment operators
- Conditional operator
- Bitwise operators
- Sizeof() operator
- Comma operator
|
79. |
What is a ternary operator in C? |
|
Perhaps the most unusual operator in C language is one called the conditional expression operator. Unlike all other operators in C which are either unary or binary operators the conditional expression operator is a ternary operator; that is, it takes three operands. The two symbols that are used to denote this operator are the question mark (?) and the colon (:). The first operand is placed before the ?, the second between the ? and the and the third after the :. |
80. |
What is assignment operator? |
|
An operator is a symbol that operates on a certain data type.In C, the ’=’ symbol is known as the assignment operator. It sots the value of the variable on the left hand side of it to that of the right hand side of it. |