Define Operator, Operand, and Expression in 'C'?
Operators are symbols which take one or more operands or expressions and perform arithmetic or logical computations.
Broadly speaking the types of operators available in C are as follows:
- Arithmetic
- Assignment
- Logical/relational
- Bitwise
These have operators under each as follows namely:
Arithmetic operators present in C are+ For performing Addition
- For performing Subtraction
/ For performing Division
* For performing Multiplication
% Modulo for finding remainder in division operation
-- Decrement (post and pre)
++ Increment (post and pre)
Assignment operatorspresent in C are as follows:=
*= Multiply
/= Divide
%= Modulus
+= Add
-= Subtract
Logical/relational operators present in C are as follows:== Equal to
!= Not Equal to
> Greater than
< Less than
>= Greater than or equal to
<= Less than or equal to
&& Logical AND
|| Logical OR
! Logical NOT
Bitwise operators present in C are& AND
| Inclusive OR
^ Exclusive OR
<< Shift Left
>> Shift Right
~ One's compliment
Operands are variables or expressions which are used in operators to evaluate the expression.
Combination of operands and operators form an expression.
For instance a = b + c; denote an expression in which there are 3 operands namely a, b, c and one operator namely +.
The association of expressions and keywords is called Statements.
For instance int a = b + c; denote a statement.
Questions by GeekAdmin answers by GeekAdmin
Showing Answers 1 - 2 of 2 Answers
Define Operator, Operand, and Expression in 'C'?
Broadly speaking the types of operators available in C are as follows:
- Arithmetic
- Assignment
- Logical/relational
- Bitwise
These have operators under each as follows namely:Arithmetic operators present in C are Assignment operatorspresent in C are as follows: Logical/relational operators present in C are as follows: Bitwise operators present in C are Operands are variables or expressions which are used in operators to evaluate the expression.
Combination of operands and operators form an expression.
For instance a = b + c; denote an expression in which there are 3 operands namely a, b, c and one operator namely +.
The association of expressions and keywords is called Statements.
For instance int a = b + c; denote a statement.
Profile Answers by GeekAdmin Questions by GeekAdmin
Questions by GeekAdmin answers by GeekAdmin