What is Operators in C - Ishwaranand

 Follow Your Dream | Believe in YourSelf | & Don't Give Up


What is Operators in C

Operators in C

Q) What is Operator? List operators in C.

  • C supports a rich set of built-in operators. An operator is a symbol that tells the computer to perform certain arithmetical or logical manipulation.
  • Operators remain applied in programs to manipulate data including variables.
  • People usually form a part of this mathematical or logical expression.
logical operators in c, operators in c, bitwise operator in c, operators in c pdf, relational operators in c, arithmetic operators in c, unary operators in c, conditional operator in c, bitwise operator in c, operators in c pdf, question mark in c, modulus operator in c, ternary operator in c, in c, logical operators in c, conditional operator in c, c++ ^ symbol, types of operators in python, c++ question mark operator, operators in c++ pdf, types of operators in c, operators in c ppt, question mark operator in c, assignment operators in c, operator c++, c++ ternary operator, const in c javatpoint, conditional operator in c javatpoint, operators in c with example,
Image Source ~ Crafted With ©Ishwaranand - 2020 ~ Image by ©Ishwaranand

C operators seat do classify within a number about categories. They include:

  1. Arithmetic operators
  2. Relational operators
  3. Logical operators
  4. Assignment operators
  5. Increment and decrement operators.
  6. Conditional operators
  7. Bitwise operators
  8. Special operators

  • Arithmetic operators:

Q) Explain arithmetic operators.

Arithmetical operators are used to performing an arithmetical manipulation like addition, subtraction.
Following are the Arithmetical operators available in C:
+Addition or unary plus
-Subtraction or unary minus
%Modulo division
void main()
int a = 26, b=5P;
 printf ("/n Addition= % d", (a+b);
 printf("/n substraction =%d", (a-b);
 printf("/n Multiplication = %d", (a*b);
  printf ("/n Division= f", (float) a/b);
 printf ("/n Modulus = %d", (a%b);


substraction =21
mulatiplication = 130
Division  = 5.200000
modulus   =1

  • Relational operators:

Q)Explain relational operators in C.

Relational operators are uses to compare two or more data items (values) i.e. these operators are used to find the relation of two values. A relational expression is used in decision making statements like if, while
Supplanting are some relational operators available in C.
<Less than
<=Less than or equal to
>Greater than
>=Greater than or equal
==Equal to Equal to
!=Not equal to
Consider a, b, c, d, e and f are integers, then
a = 5 < 10;    /*a becomes 1 */
b = 11 <= 10;    /*b becomes 0*/
c = 10 >= 20;   /* c becomes 0*/
d = 10 >= 10;    /* d becomes 1*/
e = 20 == 20;   /*e becomes 1*/
f = 20 != 20;    /*f becomes 0*/

  • Logical operators:

Q) Explain logical operators in C.

C support three logical operations that are generally performed in real practice.
These operators are used to combine two or more operations together
These are more useful when we want to test multiple conditions simultaneously.
&&Logical AND
||Logical OR
!Logical NOT

  • Assignment operators:

Q) Explain assignment operators in C.

Assignment operators are used to assigning the result of an expression to a variable. '=' is the usual assignment operator. C has a set of shorthand assignment operators like +=, *=and so on.=
+=  -=   *= /=  %= 
c = a + b; /* Simple assignment */
a = 5; a+=10; /* is similar to a = a + 10; */

No comments

Comment on Ishwaranand or Happy Day
Not, Add any types of links