0
Can someone explain header gaurd in simple words and also with a small example?
2 Answers
+ 2
header guards prevent you from including the same file twice. Like if in your code there are lines:
#include <myheader.h>
#include <myheader.h>
/*some code*/
The second include would be ignored.
0
Tq CarrieForle