Self-taught C language first lesson--Initial understanding of keywords

Source: Internet
Author: User

I think, learning a language, whether it is a programming language, or natural language, first of all, from the macro to master the use of the key to make up the language.

ANSI c A total of 32 keywords:

Auto Break Case Char Const Continue Default Do
Double Else Enum extern Float For Goto If
Int Long Register Return Short Signed Static sizeof
struct Switch typedef Union Unsigned void Volatile While

Before formally studying this language, I Baidu the function of these keywords:auto-> declare automatic variables, break-> jump out of the current loop, case-> switch Statement branch, char-> declare character type variable or function return value type, const-> Declares a read-only variable, continue-> ends the current loop, starts the next round of loops, the "other" branch in the default-> switch statement, the loop body of the do-> Loop statement, Double-> declares a double-precision floating-point variable or function return value, else- The > Conditional statement negates the branch (as with if), Enum-> declares an enumeration type, extern-> declares a variable or function is defined in another file or elsewhere in this file, Float-> declares a floating-point variable or function return value type, for-> A looping statement, goto-> unconditional jump statement, if-> conditional statement, int-> Declaration integer variable or function, long-> declaration long Integer variable or function return value type, register-> declaration register variable, return- > subroutine return statement (with or without parameters), short-> declaration of a short integer variable or function, signed: Declares a signed type variable or function, sizeof-> computes the data type or variable length (that is, all bytes), static-> Declaring a static variable, struct-> declaring struct type, switch-> for a switch statement, typedef-> to alias a data type, unsigned-> declaring an unsigned type variable or function, union-> declaring a shared body type , the void-> declares that the function has no return value or no parameter, declares the untyped pointer, volatile-> the variable can be implicitly changed in the execution of the program, and while-> the cyclic condition of the loop statement.

Completely according to the Baidu Encyclopedia C language keyword function played 32 keywords, a lot of things can not understand, such as what is "function return value type", what is "switch statement", What is "byte", static variable, dynamic variable and read-only variable is what relationship ... Many do not understand, but I will learn slowly through Baidu.

The function of these 32 keywords seems to involve a lot of "declaration", I would like to declare that may be indispensable to the program or most of the situation is indispensable, but I guess, the future of learning will tell me the answer, hehe.

It was late, and the dorm implausible began again. The roommates are talking about the women and the men who love the Twin Cities, I still sleep.

Self-taught C language first lesson--Initial understanding of keywords

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.