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 ~

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值