C语言编程学习课件 (13).pdf
《C语言编程学习课件 (13).pdf》由会员分享,可在线阅读,更多相关《C语言编程学习课件 (13).pdf(8页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Programming In CProgramming In C Programming In CProgramming In C In C programs,we often encountered that after variable calculation,the value itself needs to be increased by 1 or decreased by 1.For example,counters,loop control variables,character pointers,the values of them are needed to adjust af
2、ter each operation.In C,two operators are provided,which can concisely and efficiently complete other operations while realize the increase and decrease of the variable itself.This is the increment operation.Programming In CProgramming In C There are two kinds of incremental operators:increment and
3、decrement:+、-They are all unary operations with a high precedence.They are second only to operators with precedence of 1 such as parentheses.They are the same as positive and negative operations and higher than other arithmetic operations.The association of the increment operator is from right to le
4、ft.The increment operation can only be used before or after the variable name.It can realize increment and decrement for various basic variables or pointer variables.Programming In CProgramming In C The increment operations have two forms:prefix and postfix.The operators before variables are called
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- C语言编程学习课件 13 语言 编程 学习 课件 13
限制150内