数字后跟大写L [英] number followed by capital L

查看:136
本文介绍了数字后跟大写L的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

512L是什么意思? (或者可能是任何数字,后跟大写L)

What does 512L mean? (or probably any number followed by capital L)

示例:

uint sec 然后是带有表达式的代码: sec * 512L

uint sec and then some code with the expression: sec * 512L

(摘录自 XV6 代码-mkfs.c)

(taken out of the XV6 code - mkfs.c)

推荐答案

L代表 l ong.

这将创建类型为long的文字.

This creates a literal of type long.

l也可以,但是看起来像1,因此应避免使用它.

l would also work, but it looks like 1, so it should be avoided.

这篇关于数字后跟大写L的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆