I am learning C programming using gcc
compiler under Ubuntu 14.04 (64bits).
As a practice, I am trying to locate the definitions of size limits of multiple C data types.
I have easily located limits.h
in /usr/include
, and found the explicit definitions of constants such as
# define INT_MAX 2147483647
in it.
I Also found out that float.h
is located in /usr/lib/gcc/x86_64-linux-gnu/4.8/include
. However, I didn't find the explicit defintion of, say, FLT_MAX
. What I got is
#define FLT_MAX __FLT_MAX__
But where is the definition of __FLT_MAX__
? Or where does the C preprocessor get the value of it?
Reference: Here is a thread on Ubuntu Forums which also asked the same question (but didn't get solved).