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

What are the special symbols in C language?

王林
Release: 2023-08-26 13:41:13
forward
5623 people have browsed it

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 −

[] () {}, ; * = #
Copy after login

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!

source:tutorialspoint.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template