当前位置:网站首页>[embedded C foundation] Part 4: use of operators
[embedded C foundation] Part 4: use of operators
2022-07-28 13:01:00 【Black cat senior】
1 Arithmetic operator
+ - * /
% : Cannot operate on floating point numbers , You can only operate on integer numbers

The result is an integer 6
1.1 i++ and ++i
++:
i++ First use and then add , Don't wait for the statement to complete before adding ( That is, you don't have to wait for the line “;” add )
++i Add it first and then
–:
And ++ equally
1、i++ It can't be left , and ++i Sure .
2、 Remember a little ,++i stay i Directly added to the memory where it is located , Directly change the value of memory . and i++ Will apply for the same memory space to store i++, Wait for it to run out i in the future ,
边栏推荐
- 机器学习实战-逻辑回归-19
- Block reversal (summer vacation daily question 7)
- Analysis of Andriod low on memory printing principle
- MySQL is always installed unsuccessfully. Just do it like this
- LeetCode每日一题(2196. Create Binary Tree From Descriptions)
- 【嵌入式C基础】第5篇:原码/反码/补码
- Using JSON in C language projects
- Leetcode94. Middle order traversal of binary trees
- [graduation design] oscilloscope design and Implementation Based on STM32 - single chip microcomputer Internet of things
- Interface control telerik UI for WPF - how to use radspreadsheet to record or comment
猜你喜欢

大模型哪家强?OpenBMB发布BMList给你答案!

Initialization examples of several modes of mma8452q

机器学习实战-决策树-22

Science 重磅:AI设计蛋白质再获突破,可设计特定功能性蛋白质

Ruan Bonan of Green Alliance Technology: cloud native security from the open source shooting range

Xampp Chinese tutorial guide

机器学习实战-集成学习-23

Which big model is better? Openbmb releases bmlist to give you the answer!

2020-12-13

Linear classifier (ccf20200901)
随机推荐
MySQL limit paging optimization
[graduation design] heart rate detection system based on single chip microcomputer - STM32 embedded Internet of things
面试必问,敲重点!讲一下 Android Application 启动流程及其源码?
Transaction of MySQL underlying principle (2)
Interface control telerik UI for WPF - how to use radspreadsheet to record or comment
The input string contains an array of numbers and non characters, such as a123x456. Take the consecutive numbers as an integer, store them in an array in turn, such as 123 in a[0], 456 in a[1], and ou
快速读入
What is C generic, generic cache, generic constraint
STM32 Development Notes - experience sharing
机器学习基础-集成学习-13
[graduation design] oscilloscope design and Implementation Based on STM32 - single chip microcomputer Internet of things
LeetCode 移除元素&移动零
Force buckle 315 calculates the number of elements smaller than the current element on the right
04 pyechars geographic chart (example code + effect diagram)
Leetcode:704 binary search
机器学习实战-逻辑回归-19
Analysis of Andriod low on memory printing principle
【嵌入式C基础】第8篇:C语言数组讲解
Chapter IX rest Service Security
Which big model is better? Openbmb releases bmlist to give you the answer!