Posts

Showing posts from August, 2022

what is a operator in c ?

Image
what is a operator in c ?        Operator :- Operator Are Nothing But The Special Symbols That Perform Of Operation On Variable. Types Of Operators Arithmetic Operators. Relocation Operators. Logical Operators. Assignment Operators. Increment And Decrement Operators. Conditional Operators. Bitwise Operators. 1} Arithmetic Operators :-   Arithmetic Operators Are Used For To Perform Mathematical Operations On Variables.                                                                int a =  5 , b = 12 , c ; +    Addition C = a + b = 5 + 12 = 17 -    Subtraction         C = a - b = 5 - 12 = 7 *   Multiplication C = a * b = 5 * 12 = 60   /   Division C = a /  b = 5 / 12 =  0   %   Modulus C = a % b = 5 % 12 = 5 2} Relocation Operators :-   Relocation Operator Are Used For To Perform Relocation ( comparison ) Operations On Variables.  <   Less Than.  >   Greater Than.  < =   Less Than Or Equal.  > =   Greater Than Or Equal.  = =    Equal TO.   ! =     NOT Eq