300字范文,内容丰富有趣,生活中的好帮手!
300字范文 > c语言英文意义大全 c语言基础知识总结(国外英文资料).doc

c语言英文意义大全 c语言基础知识总结(国外英文资料).doc

时间:2021-04-23 10:47:06

相关推荐

c语言英文意义大全 c语言基础知识总结(国外英文资料).doc

c语言基础知识总结(国外英文资料)

c语言基础知识总结(国外英文资料)

The naming rules for identifiers are simply two things:

(1) an identifier consists of letters, Numbers, and underscores

(2) the first of the identifiers must be letters or underscores, not Numbers

(3) the identifier cannot be a keyword, such as sizeof

Input output functions and considerations

1) enter a single character: getc, getchar, getch (not the input character on the screen)

2) output a single character: putc

3) enter a string of characters (Spaces, Tab, etc.) : gets

4) output a string of characters (Spaces, tabs, etc.) : puts

5) standard input: scanf (you can enter Numbers, characters, strings, etc.

6) standard output: printf (you can format the output Numbers, characters, strings, etc.)

File input output: the input output function above (except getchar, getch) is preceded by f, such as fgetc, fputc, fscanf, fprintf, which is the input and output function of the file.

Note:

1) formatted input and output function: the scanf (format control, address table) as format input function (which format control to use double quotation marks). Printf (format control, output item table) is the format output function (in which the format controls are caused by double quotation marks)

2) the character input/output function: ch = putchar () (meaning that the computer reads in a character and assigns it to the character ch); Putchar (ch) (meaning the output character ch) (note: the character input output function can only enter output one character at a time);

3) string input/output function: gets (character array name) (functions from the standard input device on the keyboard input a string, and to assign the string is assigned to a string array name; puts (character array name) (feature is the character string of the array output to the display)

Operator's priority

Level 1 priority left combination () parentheses [] the subscript operator - > point to structure members operator. Operators structure members

Level 2 right combination! Logical not operator ~

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。