6.4.6 Punctuators

Previous Table of Contents

906

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

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

908 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).

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

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

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

behave, respectively, the same as the six tokens

        [   ]   {   }   #   ##

except for their spelling.68)

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

Next

Created at: 2005-06-29 02:18:58 The text from WG14/N1124 is copyright © ISO