Alcune costanti in C (pre-)definite negli header file di CodeBlocks (consultare gli header file per altre costanti, un manuale dell'ANSI C per verificare che siano standard)

Definite in math.h

/* Traditional/XOPEN math constants (double precison) */

#ifndef __STRICT_ANSI__

#define M_E 2.7182818284590452354

#define M_LOG2E 1.4426950408889634074

#define M_LOG10E 0.43429448190325182765

#define M_LN2 0.69314718055994530942

#define M_LN10 2.30258509299404568402

#define M_PI 3.14159265358979323846

#define M_PI_2 1.57079632679489661923

#define M_PI_4 0.78539816339744830962

#define M_1_PI 0.31830988618379067154

#define M_2_PI 0.63661977236758134308

#define M_2_SQRTPI 1.12837916709551257390

#define M_SQRT2 1.41421356237309504880

#define M_SQRT1_2 0.70710678118654752440

#endif

/*

Return values for fpclassify.

These are based on Intel x87 fpu condition codes

in the high byte of status word and differ from

the return values for MS IEEE 754 extension _fpclass()

*/

#define FP_NAN 0x0100

#define FP_NORMAL 0x0400

#define FP_INFINITE (FP_NAN | FP_NORMAL)

#define FP_ZERO 0x4000

#define FP_SUBNORMAL (FP_NORMAL | FP_ZERO)

/* 0x0200 is signbit mask */

Definite in stdlib.h

/*

* RAND_MAX is the maximum value that may be returned by rand.

* The minimum is zero.

*/

#define RAND_MAX 0x7FFF

/*

* These values may be used as exit status codes.

*/

#define EXIT_SUCCESS 0

#define EXIT_FAILURE 1

Definite in limits.h

/*

* Maximum and minimum values for ints.

*/

#define INT_MAX 2147483647

#define INT_MIN (-INT_MAX-1)

#define UINT_MAX 0xffffffff

/*

* Maximum and minimum values for shorts.

*/

#define SHRT_MAX 32767

#define SHRT_MIN (-SHRT_MAX-1)

#define USHRT_MAX 0xffff

/*

* Maximum and minimum values for longs and unsigned longs.

*

* TODO: This is not correct for Alphas, which have 64 bit longs.

*/

#define LONG_MAX 2147483647L

#define LONG_MIN (-LONG_MAX-1)

#define ULONG_MAX 0xffffffffUL

#ifndef __STRICT_ANSI__

/* POSIX wants this. */

#define SSIZE_MAX LONG_MAX

#endif

#if (defined (__STDC_VERSION__) & __STDC_VERSION__ >= 199901L) \

|| !defined(__STRICT_ANSI__)

/* ISO C9x macro names */

#define LLONG_MAX 9223372036854775807LL

#define LLONG_MIN (-LLONG_MAX - 1)

#define ULLONG_MAX (2ULL * LLONG_MAX + 1)

#endif

/*

* The GNU C compiler also allows 'long long int'

*/

#if !defined(__STRICT_ANSI__) & defined(__GNUC__)

#define LONG_LONG_MAX 9223372036854775807LL

#define LONG_LONG_MIN (-LONG_LONG_MAX-1)

#define ULONG_LONG_MAX (2ULL * LONG_LONG_MAX + 1)

Definite in stdio.h

/* Returned by various functions on end of file condition or error. */

#define EOF (-1)

/*

* The maximum length of a file name. You should use GetVolumeInformation

* instead of this constant. But hey, this works.

* Also defined in io.h.

*/

#ifndef FILENAME_MAX

#define FILENAME_MAX (260)

#endif