문제

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

example:

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

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

도움이 되었습니까?

해결책

L stands for long.

This creates a literal of type long.

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top