Home  >  Article  >  Backend Development  >  What are the special symbols in C language?

What are the special symbols in C language?

王林
王林forward
2023-08-26 13:41:135500browse

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.

tilde##%##^*(Right bracketComma/|-Question mark##[Left square bracket"Semicolon
Symbol Meaning
##~
!

#$

# #exclamation mark

pound sign

dollar sign

&

Percent sign

Insert symbol

and symbol

)

## Asterisk

Left bracket

_

,

Underscore

Plus sign

##.

##Period

Slash

Vertical bar

\

`

##Backslash

apostrophe

Minus sign

##=

##>

Equal signLeft angle bracket

Right 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!

Statement:
This article is reproduced at:tutorialspoint.com. If there is any infringement, please contact admin@php.cn delete