Header Inclusion Depth Limit

Viewed 1720

I was wondering, when including header files, can the depth of include files increase without limit? Can you specify a limit at compile time?

Example:

main.c:

#include "A.h"
const int xyz = CONST_VALUE;

A.h:

#include "B.h"

B.h:

#include "C.h"

...

...

...

Z.h:

#define CONST_VALUE ( 12345 )

Am I correct? Can header files be included endlessly?

1 Answers
Related