6.4.6 Punctuators

Previous Table of Contents "New C Standard" commentary

912

punctuator: one of
                [  ]  (  )  {  }  .  ->
                ++  --  &  *  +  -  ~  !
                /  %  <<  >>  <  >  <=  >=  ==  !=  ^  | &&  ||
                ?  :  ;  ...
                =  *=  /=  %=  +=  -=  <<=  >>=  &=  ^=  |=
                ,  #  ##
                <:  :>  <%  %>  %:  %:%:

913 A punctuator is a symbol that has independent syntactic and semantic significance.

914 Depending on context, it may specify an operation to be performed (which in turn may yield a value or a function designator, produce a side effect, or some combination thereof) in which case it is known as an operator (other forms of operator also exist in some contexts).

915 An operand is an entity on which an operator acts.

916 In all aspects of the language, the six tokens67)

        <:  :>  <%  %>  %:  %:%:

behave, respectively, the same as the six tokens

        [   ]   {   }   #   ##

except for their spelling.68)

917 Forward references: expressions (6.5), declarations (6.7), preprocessing directives (6.10), statements (6.8).

Next

Created at: 2008-01-30 02:39:42 The text from WG14/N1256 is copyright © ISO