Is it necessary to include guards in C. Because we can declare functions anytime(only the definition needs to be once). C++ have classes hence there is a chance that same class might be defined twice. I dont think we need guards in C. Please comment, Thanks.
Should be done by the compiler/preprocessor.
But since it isn't you might as well keep doing it yourself. Better safe than sorry. Others will appreciate your pain.
Oh Thanks. Structs are there in C++. I was just wondering why do we need them as C doesnt have classes. Makes sense. More than the prospect of using it or not, I was thinking about why we need to add when we can declare more than one functions. Thanks a lot guys.