`long` — C Keyword
`long` — C Keyword
The long keyword in C: a signed integer type at least 32 bits wide.
`long` — C Keyword
The long keyword in C: a signed integer type at least 32 bits wide.
Use reference pages to confirm names, categories, nearby facilities, and the constraints that matter before writing or reviewing code.
long (C)Shorthand for long int. At least 32 bits; 64 bits on LP64 platforms (Linux/macOS) but 32 bits on Windows 64-bit (LLP64).
long n;
long long n; /* C99: at least 64 bits */
unsigned long ul;
unsigned long long ull;
#include <stdio.h>
#include <limits.h>
int main(void) {
long a = 1000000L;
long long b = 9000000000LL;
printf("%ld\n", a); /* 1000000 */
printf("%lld\n", b); /* 9000000000 */
printf("LONG_MAX: %ld\n", LONG_MAX);
return 0;
}
L suffix for long literals and LL for long long.int64_t from <stdint.h>.int main() {
// Pick one facility from this reference page.
// Write the smallest program that exercises its main precondition,
// complexity rule, or lifetime constraint before scaling up.
return 0;
}