EasyManua.ls Logo

Casio Z-1

Casio Z-1
126 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
109
The following table shows all of the operators used by C and their functions,
explained in their order of precedence.
Primary Operators
( ), func( )
x[ ], y[ ][ ]
Parenthetical, function argument operations.
Specify array elements.
Unary Operators
*px
&x
-x
++x, --x
x++, x--
~x
!x
(type)x
sizeof(x)
Specifies content indicated by a pointer.
Address of variable x.
Negative value x.
+1 / -1 before using variable x.
+1 / -1 after using variable x.
NOT performed on each bit (inversion).
Logical NOT (if x0, 0 returned; if x=0, 1 returned).
Forced conversion / specification of x (cast operator).
Variable x Byte length value, sizeof(type) illegal.
Binomial operators
x*y, x/y, x%y
x+y, x-y
x<<y, x>>y
x<y, x>y, x>=y, x<=y
x==y
x!=y
x&y
x^y
x|y
x&&y
x||y
Multiplication, division, modulus (remainder of x/y).
Addition, subtraction.
x left bit shift y times, x right bit shift y times.
Relational operators (true=1, false=0).
Equality (unequal=0, equal=1).
Inequality (unequal=1, equal=0).
Bit AND of x and y.
Bit XOR of x and y.
Bit OR of x and y.
Logical AND of x and y (1 if neither x nor y are 0)
Logical OR (1 if either x or y is not zero).
Trinomial (conditional) operators
x?y:z
y if x is true (other than 0), z if x is false (0).
Assignment operators
x=y
x*=y
x/=y
x%=y
x+=y
x-=y
x<<=y
x>>=y
x&=y
x^=y
x|=y
Assigns y to variable x.
Multiplies x by y, and assigns result to x (x=x*y).
Divides x by y and assigns result to x (x=x/y).
Computes remainder of x/y and assigns result to x (x=x%y).
Adds x and y and assigns the sum to x (x=x+y).
Subtracts y to x and assigns the result to x (x=x-y).
Shifts the bits of x left y times, assigning result to x (x=x<<y).
Shifts the bits of x right y times, assigning result to x (x=x>>y).
Computes a bit AND of x and y, assigning result to x (x=x&y).
Computes a bit XOR of x and y, assigning result to x (x=x&y).
Computes a bit OR of x and y, assigning result to x (x=x&y).

Table of Contents

Related product manuals