Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is meant by LL as in 1000LL?

Tags:

c++

c

I came accross this statement:

time_t time = x / 1000LL;

So what does this LL actually mean?

like image 633
anupamb Avatar asked Oct 21 '25 22:10

anupamb


1 Answers

Copy-pasted from this question, which seems to be the exact same one with the ULL suffix :

From the gcc manual:

ISO C99 supports data types for integers that are at least 64 bits wide, and as an extension GCC supports them in C90 mode and in C++. Simply write long long int for a signed integer, or unsigned long long int for an unsigned integer. To make an integer constant of type long long int, add the suffix LL to the integer. To make an integer constant of type unsigned long long int, add the suffix ULL to the integer.

It, indeed, is a suffix for the long long int type.

like image 177
Magix Avatar answered Oct 24 '25 13:10

Magix