Kill lui lei dog-----1---language data types and common 32 keywords

Source: Internet
Author: User


Important: Strict case sensitivity in C language

The data types are as follows:

The 32 keywords are as follows:

Auto--------This keyword is used to declare that the lifetime of a variable is automatic, and that variables defined in any class, struct, enumeration, union, and function are not treated as global variables, whereas variables defined in a function are considered local variables. This keyword doesn't write much, because all variables are auto by default.  Break--------Break Statement Case--------General with switch utilityChar--------Character TypeConst--------A const-decorated data type is a constant type, and the value of a variable or object of a constant type cannot be updated. Continue--------Continueis to skip the rest of the cycle and go directly to the next loop. default--------in switch, execute the statement under default if either case is not satisfied Do--------is usually used in conjunction with while.Double--------generally indicates a double-precision shapeif--------Judgment StatementElse--------with if to judge theenum--------An enumeration type that is an atomic type, such as Integer, float, character, and so on. extern--------is a global variable declarationfloat--------data type single precision shape for--------keywords for loop statementsGoto--------also known as unconditional transfer statementint--------shaping in data typesLong--------long shaping register in data type--------CPU has cache, that is very fast, but very small, plus this, this variable is stored in the register cache. Generally used for frequent modification of global variablesreturn--------is powerful, if a function has a return and executes, then the function is finished.returnRepresents the return from the transferred function to the key function to continue execution, returned with a return value, specified by the parameter after return. Return is usually necessary because the result of a function call is usually taken out of the return value. If the function execution does not need to return the result of the calculation, it is often necessary to return a status code to indicate whether the function performs smoothly (-1 and 0 are the most commonly used status codes, and the key function can determine the performance of the tuned function by the return value.  Short--------short shaping signed in data types--------is the default representation that the variable is signed, which can store integers and negative numberssizeof--------is the number of bytes that are counted by the object, and is typically used to view the number of bytes in a variable, array, or struct body. Static--------the type descriptor for a static variable is static. struct--------constructs that belong to a constructed type in a data typeSwitch--------General with case to practical, belongs to the Process Control keyword typedef--------define a data type by itself Union--------Union (Union Common), seldom used, often cannot be remembered for these infrequently used structuresvoid--------personally, I feel like a function in PHP .volatile--------The variable you define is always going to change during the course of your program, and you want this value to be handled correctly, and you have to read the value from memory every time, so that there is no error, and this is the effect of this volatile.  while--------keyword for a while loop statement

Kill lui lei dog-----1---language data types and common 32 keywords

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.