I hava a look at many header files they have codes like #ifndef and #endif
what does they explain,please.
smdjilani
0
js
Recommended Answers
Jump to PostThe #ifndef is used for checking if the macro is not already defined, if macro is defined already it will do nothing, if not we can define macro.
below example should clarify your doubt.
to see effect uncomment #define MAX 5#include <stdio.h> //#define MAX 5 #ifndef …
All 3 Replies
clife
0
Unverified User
deceptikon
1,790
Code Sniper
Team Colleague
Featured Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.