explain concept of operator's in c language. please.faster..
Answers
Answered by
1
Answer:
Operators are the foundation of any programming language. Thus the functionality of C language is incomplete without the use of operators. Operators allow us to perform different kinds of operations on operands. In C, operators in Can be categorized in following categories:
- Arithmetic Operators (+, -, *, /, %, post-increment, pre-increment, post-decrement, pre-decrement)
- Relational Operators (==, !=, >, <, >= & <=) Logical Operators (&&, || and !)
- Bitwise Operators (&, |, ^, ~, >> and <<)
- Assignment Operators (=, +=, -=, *=, etc)
- Other Operators (conditional, comma, sizeof, address, redirection)
- Arithmetic Operators: These are used to perform arithmetic/mathematical operations on operands. The binary operators falling in this category are:
- Addition: The ‘+’ operator adds two operands. For example, x+y.
- Subtraction: The ‘-‘ operator subtracts two operands. For example, x-y.
- Multiplication: The ‘*’ operator multiplies two operands. For example, x*y.
- Division: The ‘/’ operator divides the first operand by the second. For example, x/y.
- Modulus: The ‘%’ operator returns the remainder when first operand is divided by the second. For example, x%y.
Answered by
3
- An operator is a symbol that tells the compiler to perform a certain mathematical or logical manipulation.
- Operators are used in programs to manipulate data and variables. C operators can be classified into following types: Arithmetic operators. Assignment operators.
Similar questions
English,
4 months ago
History,
4 months ago
English,
4 months ago
History,
9 months ago
Computer Science,
9 months ago