Dark Horse programmer-features and Keywords of C language, dark horse programmer keywords

Source: Internet
Author: User

Dark Horse programmer-features and Keywords of C language, dark horse programmer keywords

------ Java training, Android training, iOS training, and. Net training. We look forward to communicating with you! -------

Introduction to C Language

I. C language has the following features:

A complete c language consists of declarations and functions. Generally, the C project file is composed of main. c, and the header file is a C code file.

Ii. Keywords in C Language

Char: Declares the return values of character variables or functions.

Short: declare short integer variables or functions

Int: Declares integer variables or functions.

Unsigned: Declares unsigned type variables or functions.

Long: Declares the return value of a long integer variable or function.

Float: Declares the float type variable or function return value type.

Double: Declares the double Well floating point type variable or function return value type.

Struct: Declares the struct type.
Union: Declares the shared object type.

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

Enum: Declares the enumeration type.

Signed: Declares signed variables or functions.
Const: Declare System Variables

Volatile: indicates that the variable is implicitly changed during program execution.

Typedef: used to name different data types

Auto: Declares automatic variables.
Register: Declares register variables.

Static: declare static variables

Extern: declares that a variable or function is in another file or another location in this file.

Break: jump out of the current loop
Case: switch statement Branch

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

Default: other branches in the switch statement

Do: the body of the loop statement.
Else: the conditional statement is sufficient for determining the branch.

For: a loop statement.

Goto: unconditional jump statement

If: Condition Statement
Return: subprogram return Statement

Switch: Used for the switch statement

While: the loop condition of the loop statement

Sizeof: calculates the length of a data type or variable.

Entry Program:

 

Run

 

 

------ Java training, Android training, iOS training, and. Net training. We look forward to communicating with you! -------

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.