32 keywords defined in C Language

Source: Internet
Author: User

This article introduces the usage of 32 keywords defined in the C language standard. For more information, see.

Keywords Meaning
Auto Declare automatic variables. The default value of the time-saving compiler is auto. Function call is to allocate space, call ends, and release space.
Int Declare int;
Double Declare double;
Long Declare long integer variable long;
Char Declare the character type variable char a []; different from C # char [];
Float Declare float;
Short Declare a short integer variable
Signed Declare signed type variables
Unsigned Declare an unsigned Type Variable
Struct

Declare struct Variables

Struct student

{

String name;

Int age;

} // Widely used

Union Declare federated Data Types
Enum Declare Enumeration type
Static Declare static variables
Switch Switch statement
Case Switch statement
Default Other branches in the switch statement
Break Jump out of the current loop
Register Declare register variables
Const Declare Read-Only variables
Volatile It indicates that the variable is implicitly changed during program execution.
Typeof Swimsuit uses aliases for data types to enhance program portability
Extern Declared variables are declared in other files
Return Subroutine Return Statement
Void Declare a function with no return value or no parameter, and declare a null pointer.
Continue End the current cycle and start the next cycle
Do Execute the loop body statement
While Loop condition of the loop body statement
If Condition Statement
Else Condition Statement negative Branch
For A loop statement
Goto Unconditional jump statement
Sizeof Memory space occupied by computing objects

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.