

precedence                  Definition                 precedence




Precedence refers to the  property of each C operator that deter-
mines priority of  execution.  Operators are executed in order of
their degree of precedence, from highest to lowest.

The  following table  summarizes the  precedence of  C operators.
The are  listed in descending  order of precedence:  those listed
higher in the table are executed before those lower in the table.
Operators  listed  on  the  same  line  have the  same  level  of
precedence.



         _O_p_e_r_a_t_o_r                          _A_s_s_o_c_i_a_t_i_v_i_t_y

         ___________________________________________
         ()   []   ->   .                  Left to right

         ___________________________________________
         !  ~  ++  --  -  (_t_y_p_e)  *  &  _s_i_z_e_o_fRight to left

         ___________________________________________
         *  /  %                           Left to right

         ___________________________________________
         +  -                              Left to right

         ___________________________________________
         <<  >>                            Left to right

         ___________________________________________
         <  <=  >  >=                      Left to right

         ___________________________________________
         ==  !=                            Left to right

         ___________________________________________
         &                                 Left to right

         ___________________________________________
         ^                                 Left to right

         ___________________________________________
         |                                 Left to right

         ___________________________________________
         &&                                Left to right

         ___________________________________________
         ||                                Left to right

         ___________________________________________
         ?:                                Right to left

         ___________________________________________
         =  +=  -=  *=  /=  %=             Right to left

         ___________________________________________
         ,                                 Left to right

         ___________________________________________


You can always determine precedence in an expression by enclosing
sub-expressions  within   parentheses:  the  expression  enclosed
within the innermost parentheses is always executed first.

***** See Also *****

definitions, operators
_T_h_e _C _P_r_o_g_r_a_m_m_i_n_g _L_a_n_g_u_a_g_e, ed. 2, page 48









COHERENT Lexicon                                           Page 1


