#ifndef api_H_
#define api_H_
...
#endif
In above code it's checking that if file is already included or not to avoid multiple inclusions.
Question:
I want to know that if there is any better way to do so and what are the alternatives of it and if this is the better way of doing it then why it is so?