Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

数据类型 - 类型自动转换 #98

Closed
m1stake opened this issue Nov 27, 2023 · 1 comment
Closed

数据类型 - 类型自动转换 #98

m1stake opened this issue Nov 27, 2023 · 1 comment

Comments

@m1stake
Copy link

m1stake commented Nov 27, 2023

数据类型 - 类型自动转换 - 宽类型赋值给窄类型

// ch 的值是 65 (321 - 256)
// 改成 求余
// ch 的值是 65 (321 % 256)

是不是更合理一点

@ruanyf ruanyf closed this as completed in a4ef5e5 Nov 27, 2023
@ruanyf
Copy link
Contributor

ruanyf commented Nov 27, 2023

谢谢指出,已经更正。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants