If you want to download this blogger theme for free then click on below link. Download blogger theme for free
Operator in C:
C programming language, an operator is a symbol that represents an operation to be performed on one or more operands.
C provides a variety of operators, each with its specific purpose. Operators can be broadly categorized into the following below :
Arithmetic Operators:
Addition (+): Adds two operands. Subtraction (-): Subtracts the right operand from the left operand. Multiplication (*): Multiplies two operands. Division (/): Divides the left operand by the right operand. Modulus (%): Computes the remainder when the left operand is divided by the right operand.Relational Operators:
Equal to (==): Checks if two operands are equal. Not equal to (!=): Checks if two operands are not equal. Greater than (>): Checks if the left operand is greater than the right operand. Less than (<): Checks if the left operand is less than the right operand. Greater than or equal to (>=): Checks if the left operand is greater than or equal to the right operand. Less than or equal to (<=): Checks if the left operand is less than or equal to the right operand.
Logical Operators:
Logical AND (&&): Performs a logical AND operation on two operands. Logical OR (||): Performs a logical OR operation on two operands. Logical NOT (!): Performs a logical NOT operation on a single operand.
Assignment Operators:
Assignment (=): Assigns the value on the right to the variable on the left. Compound Assignment Operators (e.g., +=, -=, *=, /=): Perform an operation and assign the result to the left operand.
Increment and Decrement Operators:
Increment (++) and Decrement (--): Add or subtract 1 from a variable, respectively.in this two type of
1. a. pre-increament
b. post-increament
2. a. pre-decreament
b. post-decreament
Bitwise Operators:
Bitwise AND (&), Bitwise OR (|), Bitwise XOR (^): Perform bitwise operations on integers. Bitwise Shift Operators (<< and >>): Shift bits left or right.
Comments
Post a Comment