0

Can someone explain header gaurd in simple words and also with a small example?

1st Jun 2020, 12:29 PM
SHALINI
2 ответов
+ 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.
1st Jun 2020, 12:54 PM
加油 我先下了
加油 我先下了 - avatar
1st Jun 2020, 2:38 PM
SHALINI