mirror of
https://github.com/Aexiar/c.git
synced 2024-10-22 14:05:45 +02:00
c
This commit is contained in:
parent
8cf2d449fd
commit
26b84fe55d
@ -1134,7 +1134,7 @@ int main() {
|
||||
|
||||
![](./assets/12.png)
|
||||
|
||||
> [!NOTE]
|
||||
> [!WARNING]
|
||||
>
|
||||
> 最好避免无符号整数与有符号整数的混合运算,因为这时 C 语言会自动将 signed int 转为 unsigned int ,可能不会得到预期的结果。
|
||||
|
||||
@ -1240,7 +1240,7 @@ int main() {
|
||||
|
||||
![](./assets/14.png)
|
||||
|
||||
> [!NOTE]
|
||||
> [!WARNING]
|
||||
>
|
||||
> C 语言在检查类型匹配方面不太严格,最好不要养成这样的习惯。
|
||||
|
||||
@ -1276,7 +1276,7 @@ int main() {
|
||||
数据类型 变量名 = (类型名)变量、常量或表达式;
|
||||
```
|
||||
|
||||
> [!NOTE]
|
||||
> [!CAUTION]
|
||||
>
|
||||
> 强制类型转换可能会导致精度损失!!!
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user