Skip to main content

Posts

Showing posts with the label Assignment Operators

Operators in C programming : Assignment Operators

There are several different assignment operators in C. All of them are used to form assignment expressions which assign the value of an expression to an identifier. The most commonly used assignment operator is =. Assignment expressions that make use of the operator are written in the form: identifier = expression Where identifier generally represents a variable, and expression represents a constant, a variable or more complex expression.  Here are some typical assignment expressions that make use of the = operator. a = 3 x = y delta = 0.001 sum = a+b area = length * width Assignment operator = and equality operator = = are distinctly different. The assignment operator can be applied only to integer type signed or unsigned) and not to float or double. They are Operator                    Meaning &            ...