Keywords in C Language

Source: Internet
Author: User

Keywords in C Language

1. the keywords in C language all have practical significance.

2. The 23 keywords in C language are as follows:

 

Char: declare a struct variable.

Short: declare the short integer variable.

Int: declares an integer variable.

Long: declares a long integer variable.

Float: Declares floating point variables.

Double: Declares double-precision variables.

 

Struct: Declares struct variables.

Union: declares a shared object variable.

Enum: Declares the enumeration type.

Typedef: used to obtain the alias for this data type.

 

 

Const: Declares Read-Only variables.

Unsigned: Declares unsigned type variables.

Signed: declares a variable of the signed type.

Extern: declared variables are declared in other files.

Auto: Declares automatic variables.

Register: Declares register variables.

Static: declare static variables.

Volatitle (changeable and unstable): declares 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: A Condition Statement.

Else: The Condition Statement denies the branch.

Switch: Used for the switch statement.

Case: switch statement branch.

Default: Other "branches" in the switch statement ".

 

For: a loop statement.

Do: the body of the loop statement.

While: the loop condition of the loop statement.

Continue: end the current cycle and start the next cycle.

Break: jumps out of the current loop.

Goto: an unconditional jump statement.

 

 

Sizeof: calculates the length of the data type.

Return: subprogram return statement.

 

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.