The number followed by capital L

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

Example:

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

(extracted from XV6 code - mkfs.c)

+4
source share
1 answer

L is l ong.

This creates a literal of type long .

L will also work, but it looks like 1 , so it should be avoided.

+6
source

Source: https://habr.com/ru/post/1488392/


All Articles