Introduction to Operators in C

In this tutorial, I will introduce operators in C. We will learn some terminology related operators, and we will set the ground to understand all the operators in C in the upcoming tutorials.


Basic Terminology

Operator:  An operator is like a special symbol that we use to do something with values or variables. It helps us perform specific actions or calculations. For instance, the plus sign (+) is an operator that lets us add two numbers together.

Operand: When we use an operator, we need values to operate on. These values are called operands. In the expression 2 + 3, the numbers 2 and 3 are the operands.

Expression:  An expression is something that can be evaluated to get a specific value. It can be a combination of operators and operands. For example, when we evaluate the expression 2 + 3, we get the value 5. So, 2 + 3 is an expression because it can be calculated to give us a result.


Types of Operators

Following are the fundamental operators available in C:

  1. Arithmetic operators
  2. Relational operators 
  3. Logical operators
  4. Assignment operators
  5. Bitwise operators
  6. Increment and decrement operators

We will study these operators one by one in the subsequent tutorials.



Leave a comment

Leave a comment

Your email address will not be published. Required fields are marked *

Thank you for choosing to leave a comment. Please be aware that all comments are moderated in accordance with our policy. For more information, please review our comments policy. Rest assured that your email address will not be shared with anyone. Kindly refrain from using keywords in your comment. Let’s maintain a respectful atmosphere and engage in meaningful conversations.