Casio FX-890P Owner's Manual page 109

Casio personal computer owner's manual
Table of Contents

Advertisement

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[ ][ ]
Unary Operators
*px
&x
-x
++x, --x
x++, x--
~x
!x
(type)x
sizeof(x)
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
Trinomial (conditional) operators
x?y:z
Assignment operators
x=y
x*=y
x/=y
x%=y
x+=y
x-=y
x<<=y
x>>=y
x&=y
x^=y
x|=y
Parenthetical, function argument operations.
Specify array elements.
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 x≠0, 0 returned; if x=0, 1 returned).
Forced conversion / specification of x (cast operator).
Variable x Byte length value, sizeof(type) illegal.
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).
y if x is true (other than 0), z if x is false (0).
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).
109

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Z-1grZ-1

Table of Contents