当前位置:网站首页>The fourth day of learning C language
The fourth day of learning C language
2022-07-27 09:16:00 【ruin987】
Main review
Compound assignment
5 An arithmetic operator ,+ - * / %, And assignment operators "=" Combine , Form a compound assignment operator :"+=" , "-=" , "*=" "/=" "%="
total+=5;
total=total+5;
Note that there is no space between the two operators
A short circuit
Logical operations are performed from left to right , If the result on the left can already determine the result , You don't do the right calculation
a==6&&b==1
a==6&&b+=1 ( Don't assign values to , Including compound assignments combined into expressions !)
about &&, On the left is false If so, don't do the right
about ||, On the left is true When you don't do the right side
边栏推荐
- JS call and apply
- Nut weather
- QDoubleValidator不生效问题解决办法
- ES6 new - array part
- ctfshow 终极考核
- PyTorch自定义CUDA算子教程与运行时间分析
- Mangodb simple to use
- js call和apply
- [leetcode -- the first day of introduction to programming ability] basic data type [statistics of odd numbers within the range / average wage after removing the minimum wage and maximum wage)
- Install Oracle under Linux, connect local pl/sql to Oracle import table under Linux, and create new user and password
猜你喜欢
![[C language _ study _ exam _ review lesson 3] overview of ASCII code and C language](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[C language _ study _ exam _ review lesson 3] overview of ASCII code and C language

Ctfshow ultimate assessment

async/await的执行顺序以及宏任务和微任务

一些实用、常用、效率越来越高的 Kubernetes 别名

500 error reporting

MySQL transaction

巴比特 | 元宇宙每日必读:广州南沙发布“元宇宙九条”措施,平台最高可获得2亿元资金支持...

拍卖行做VC,第一次出手就投了个Web3

软件测试功能测试全套常见面试题【功能测试-零基础】必备4-1

PyTorch自定义CUDA算子教程与运行时间分析
随机推荐
500 error reporting
Deep understanding of Kalman filter (3): multidimensional Kalman filter
STL container -- Application of set set
Wechat applet 5 - foundation strengthening (not finished)
软件测试功能测试全套常见面试题【功能测试-零基础】必备4-1
拍卖行做VC,第一次出手就投了个Web3
HUAWEI 机试题:火星文计算 js
MySQL基础知识学习(一)
被三星和台积电挤压的Intel终放下身段,为中国芯片定制芯片工艺
Is the operation of assigning values to int variables atomic?
[daily algorithm 94] classic interview question: motion range of robot
[acl2020] a novel method of component syntax tree serialization
Tensorflow loss function
[micro service ~sentinel] sentinel dashboard control panel
Antdesign a-modal user-defined instruction realizes dragging and zooming in and out
Cross domain and processing cross domain
[cloud native kubernetes practice] deploy the rainbow platform under the kubernetes cluster
Flex layout (actual Xiaomi official website)
Nut joke based on arkui ETS
Test picture