C语言快速复习(国外英文资料).docVIP

  • 4
  • 0
  • 约1.73万字
  • 约 32页
  • 2017-06-05 发布于河南
  • 举报
C语言快速复习(国外英文资料)

C语言快速复习 = = = = the composition of the C language source files Preprocessing instructions: All lines that start with # are pre-processing instructions. The include define # ifndef endif, etc Such as: # include stdio, h # define N 10 Define statements: Structure type definitions, alias definitions, global variable definitions, and so on. Such as: Struct student { Int id; Int score; }; Typedef int int32. The int value = 10; Statements: Function prototype declaration, global variable declaration, etc. Such as: Extern int fun (void); Extern int value. Function: The set of instructions, the basic unit of the C language execution statement, any expression that is contained within the function. = = = = = = = = = = = = = = = = = = = = = = = = C language syntax of = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Key words: The C language has a built-in symbol that is used for grammar control, which forms the syntax of the C language. Storage: auto extern register static Data type: int char short long float double signed unsigned void If else for while do break continue switch case default goto return Other: sizeof volatile const union struct typedef enum Identifier: User-defined symbols used to mark variables, functions, types, and so on. Defining rules for identifiers: It can only be made up of English case, underline, and Numbers. Dont name the keyword. You cant start with a number. Length limitation (non-standard). Operator: The symbol used in the C language is used as a calculation. Be careful about priorities and combinations when you use them. Arithmetic: + - * / % Relationship: = = =. = Logic: A: | ~ ^ Assignment: = + = = * = / = % = = = = ^ = | = Other: () - . :, Interval: used as a lexical analysis. Spaces, lines, tables, notes Punctuation: () 1 byte = 8 bit = = = = = = = = = = = = = = = = = = = = = = = = = = = = = C language data = = = = = = = = = = = = = = = = = = = = = = = = = = = = Variable: used to hold data, its data value can be

文档评论(0)

1亿VIP精品文档

相关文档