0

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

1st Jun 2020, 12:29 PM
SHALINI
2 RĂ©ponses
+ 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