Summary of Common keywords and functions in C Language

Source: Internet
Author: User

Summary of Common keywords and functions in C Language
There are 32 keywords in C language, as described below:

Auto: Declares automatic variables.

Short: declare short integer variables or functions

Int: Declares integer variables or functions.

Long: declares a long integer variable or function.

Float: Declares floating point variables or functions.

Double: Declares double-precision variables or functions.

Char: declare struct variables or functions

Struct: Declares struct variables or functions.

Union: Declares the shared data type.

Enum: Declares the enumeration type.

Typedef: Used to get an alias for the Data Type

Const: declare Read-Only variables

Unsigned: Declares unsigned type variables or functions.

Signed: Declares signed variables or functions.

Extern: declared variables are declared in other files

Register: Declares register variables.

Static: declare static variables

Volatile: indicates that variables can be implicitly changed during program execution.

Void: declares that a function has no return value or no parameter and has no type pointer.

If: Condition Statement

Else: The Condition Statement denies the branch (used with if)

Switch: used for switch statement case: switch statement Branch

For: a loop statement.

Do: the body of the loop statement.

While: the loop condition of the loop statement

Goto: unconditional jump statement

Continue: ends the current cycle and starts the next cycle.

Break: jump out of the current loop

Default: "other" branch in the switch statement

Sizeof: calculates the length of the data type.

Return: the loop condition of the subprogram return Statement (which can contain parameters or parameters ).

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.