-
limits.h
Earlier today i had an issue with the limits of an int etc i guess it follows on here. i came across the header limits.h and apparently there is a macro defined in there for the maximum unsigned int (UINT_MAX) I did a little more research and found that a unsigned long long can be found with LLONG_MAX however my compiler?? doesn't recognize this.
-
There are different historical C standards: ANSI C (a.k.a., C89 or C90), C99, C11, C17, or C23.
LLONG_MAX was added with C99 whereas your compiler apparently defaults to an earlier standard.
With gcc, you ask for a particular standard with the -std flag, so you would say:
gcc -std=c99 ...
LLONG_MAX will probably be the same as LONG_MAX anyway.
-
thanks for some reason the c++ c99 standard was checked but not the c c99 standard