User`s manual

242 digi.com Operators
Beware of using uninitialized pointers. Also, the indirection operator can be used in
complex ways.
int *list[10] // array of 10 ptrs to int
int (*list)[10] // ptr to array of 10 ints
float** y; // ptr to a ptr to a float
z = **y; // z gets the value of y
typedef char **stp;
stp my_stuff; // my_stuff is typed char**
As a binary operator, the * indicates multiplication.
a = b * c; // a gets the product of b and c
13.9 Conditional Operators
Conditional operators are a three-part operation unique to the C language. The operation has three oper-
ands and the two operator symbols ? and
:.
If the first operand evaluates true (non-zero), then the result of the operation is the second operand. Other-
wise, the result is the third operand.
int i, j, k;
...
i = j < k ? j : k;
The ? : operator is for convenience. The above statement is equivalent to the following.
if( j < k )
i = j;
else
i = k;
If the second and third operands are of different type, the result of this operation is returned at the higher
precision.
? :