Archive

Posts Tagged ‘Operators’

Usages and Definitions of All Operators in C

October 16th, 2009 Mehmatrix No comments

There is a list of all operators in C.

  1. Assignment Operator
  2. Arithmetic Operators
  3. Cast Operator
  4. Increment and Decrement Operators
  5. Abbreviated Assignment Operators
  6. Relational Operators
  7. Logical Operators

  1. Precedence of Operators


I. Assignment Operator

Equal sign (=) is used as assignment operator in C and it must be read as “is assigned the value of”.

1
a = b;

That means: a is assigned value of b. There is also this usage that allows you to make multiple assignments like this:

1
r=c=o=153;

All of the variables are equalized to 153. The precedence of assignment operator is right to left. That means first o is equalized to 153, then c is assigned value of o which is 153, finally r is assigned value of c. Click to Read Complete Article »

Bookmark and Share
Categories: C Tags: , , ,
eXTReMe Tracker