Skip to main content

Posts

Showing posts with the label Operator

Assignment Operator

Assignment Operator :   The Operator who assigns a value or expression called Assignment Operator General form of Assignment Operator Variable_name= expression  Single Assignment: If we assign only one variable to a value is called Single Assignment. Example:   X=5; Y=z; etc. Multiple Assignments: If we assign many variable to a value is called Multiple Assignment. Example: x=y=z=5; A=b=c=Pi; etc. Compound Assignment: If we assign a statement to a value is called Compound Assignment. Example: x=y+5; x=x+5; it also can be written as x+=5; x=x-5; it also can be written as x-=5; etc.

Operator in C Programming Language.

Operator: C has many built in Operator. There are four main operators in c Programming Language. 1.        Arithmetic Operator 2.        Relational Operator 3.        Logical Operator 4.        Bitwise Operator But there are some special Operators, such as Assignment Operator Conditional Operator Unary Operator etc.