0 like 0 dislike
21 views
in Tutorial & Interview questions by Goeduhub's Expert (7.8k points)

An operator in a programming language is a symbol that tells the compiler or interpreter to perform a specific mathematical, relational or logical operation and produce a final result.

1 Answer

0 like 0 dislike
by Goeduhub's Expert (7.8k points)
 
Best answer

An operator in a programming language is a symbol that tells the compiler or interpreter to perform a specific mathematical, relational or logical operation and produce a final result.

C has many powerful operators. Many C operators are binary operators, which means they have two operands. For example, in a / b, / is a binary operator that accepts two operands (a, b). There are some unary operators which take one operand (for example: ~, ++), and only one ternary operator ? :.

Type of operators in C programming:

  • Relational Operators
  • Conditional Operator/Ternary Operator
  • Bitwise Operators
  • Short circuit behavior of logical operators
  • Comma Operator
  • Arithmetic Operators
  • Access Operators
  • Sizeof Operator
  • Cast Operator
  • Function Call Operator
  • Increment / Decrement
  • Assignment Operators
  • Logical Operators
  • Pointer Arithmetic
  •  _Alignof

Related questions

0 like 0 dislike
1 answer 5 views
0 like 0 dislike
1 answer 4 views
0 like 0 dislike
0 answers 11 views
0 like 0 dislike
1 answer 6 views
0 like 0 dislike
1 answer 7 views
...