From 26b84fe55d845eb4d9a41710bfc752af1a2041b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AE=B8=E5=A4=A7=E4=BB=99?= <1900919313@qq.com> Date: Mon, 5 Aug 2024 09:41:19 +0800 Subject: [PATCH] c --- docs/notes/01_c-basic/03_xdx/index.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/notes/01_c-basic/03_xdx/index.md b/docs/notes/01_c-basic/03_xdx/index.md index 97a5879..3a39997 100644 --- a/docs/notes/01_c-basic/03_xdx/index.md +++ b/docs/notes/01_c-basic/03_xdx/index.md @@ -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] > > 强制类型转换可能会导致精度损失!!!