sir had used
#define HASHTABLE_H
#ifndef HASHTABLE_H
what does these means…?
sir had used
#define HASHTABLE_H
#ifndef HASHTABLE_H
what does these means…?
@ynikhil1999 hey Nikhil
for example
#ifndef
#ifndef < token >
/* code /
#else
/ code to include if the token is defined */
#endif
#ifndef checks whether the given token has been #defined earlier in the file or in an included file; if not, it includes the code between it and the closing #else or, if no #else is present, #endif statement. #ifndef is often used to make header files idempotent by defining a token once the file has been included and checking that the token was not set at the top of that file.
#ifndef _INCL_GUARD
#define _INCL_GUARD
#endif
for more such example go to this link
link
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.