Home > Article > Backend Development > What are the special symbols in C language?
In the C programming language, usually, special symbols have special meanings and cannot be used for other purposes.
Some special symbols used in C programming are as follows −
[] () {}, ; * = #
Let us know their definition as follows:
Square brackets [] - The opening and closing of square brackets are used for array element references to represent single and multidimensional subscripts.
Parentheses () - These special symbols are used for function calls and function parameters.
Curly braces {} - The opening and closing of curly braces indicates the beginning and end of a block of code that contains multiple executable statements.
Comma (,) - used to separate multiple statements, such as parameter separation in function calls.
Colon(:) - This is an operator that actually calls something called an initialization list.
Semicolon (;) - It is called statement terminator and indicates the end of a logical entity. This is why each individual statement must end with a semicolon.
Asterisk (*) - used to create pointer variables.
Assignment operator (=) - used for assignment.
Preprocessor(#) - The preprocessor is called a macro processor and is used by the compiler to transform your program before the actual compilation begins.
The following table gives the corresponding meanings of special symbols in the C programming language.
Symbol | Meaning |
---|---|
##~ | tilde|
!#$ # #exclamation mark |
pound sign dollar sign |
&
Percent sign Insert symbol |
and symbol
| *
)
## Asterisk Left bracket | Right bracket
_ |
,
Underscore Plus sign | Comma##. | /
##Period Slash Vertical bar |
\ ` |
##BackslashapostropheMinus sign |
##= ##> |
Equal signLeft angle bracketRight angle bracket | ##? { } |
Left brace Right brace | ##[]: |
Right square bracketColon | ";
Quotation marks |
##
The above is the detailed content of What are the special symbols in C language?. For more information, please follow other related articles on the PHP Chinese website!