What are operators?
Operators in C or any programming language function the same way as operators work in mathematics.
Consider operators as your daily driver tools in the world of programming, they help you make decisions, compare two values, assign new values to new or update old values, and even add or subtract values etc.
Types Of Operators
1. Arithmetic Operators: Used for mathematical operations when needed, for example (+, -, *, /, %)
2. Relational Operators: Used to check the condition or when a comparison is needed. They are also called conditional operators. example: (==, !=, >, <)
3. Logical Operators: As the name suggests they are used to make decisions based on if a condition is met or not. for example (&&, ||, !)
4. Assignment Operators: Used to assign, store or update the data in variables or storage locations, they are also the most used operators if we look at C's programming syntax.
I hope this post was helpful, please follow for more.
Thanks a ton for your time.
Top comments (0)