标识符与命名规范

变量运算规则

long l = 1323,此时没有后加L,但是仍然可以编译,是因为实际上把1323int型赋给了long型

如果后面的值超过了int的值,就会出问题image-20230204164707790

Donate
  • Copyright: Copyright is owned by the author. For commercial reprints, please contact the author for authorization. For non-commercial reprints, please indicate the source.
  • Copyrights © 2023 Langxecho
  • Visitors: | Views:

请我喝杯咖啡吧~

支付宝
微信