These are the punctuation symbols in C. The meaning of each symbol is detailed in the linked pages.
{ }
[ ]
#
##
( )
sizeof, _Alignof(since C11) , typeof or typeof_unqual(since C23) expression, delimit the operand. if, switch, while, do-while, or for statement, delimit the controlling clause. defined, __has_include, __has_embed or __has_c_attribute(since C23) preprocessing operator. _Atomic type specifier, delimit the type-id. (since C11) _Alignas specifier, delimit the operand. (since C11) __VA_OPT__ replacement in a variadic macro definition. (since C23) #embed directives and __has_embed preprocessing expressions, delimit the preprocessor parameter clause. (since C23) ;
:
default and the selected expression. (since C11) ...
?
::
#embed and __has_embed), indicate scope. (since C23) .
->
~
!
+
-
*
/
%
^
&
|
=
+=
-=
*=
/=
%=
^=
&=
|=
==
!=
<
#include directive __has_include preprocessing expression (since C23) #embed directive (since C23) __has_embed preprocessing expression (since C23) #pragma directive >
#include directive __has_include preprocessing expression (since C23) #embed directive (since C23) __has_embed preprocessing expression (since C23) #pragma directive <=
>=
&&
||
<<
>>
<<=
>>=
++
--
,
| Alternative representations (C95) | alternative spellings for certain operators |
| C++ documentation for Punctuation | |
© cppreference.com
Licensed under the Creative Commons Attribution-ShareAlike Unported License v3.0.
https://en.cppreference.com/w/c/language/punctuators