anupamb
anupamb

Reputation: 482

What is meant by LL as in 1000LL?

I came accross this statement:

time_t time = x / 1000LL;

So what does this LL actually mean?

Upvotes: 4

Views: 3640

Answers (1)

Magix
Magix

Reputation: 5369

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.

Upvotes: 7

Related Questions