Jun 21, 2020

#include in C++ | Competitive Programming | Coding Winds | We care about the fujture of future

#include <bits/stdc++.h>


Hello people, in this article we are going to read about the very important header file ‘#include <bits/stdc++.h>’. It is a standard header file which includes every standard library.

This header file is most helpful when we go for competitive programming, where we have to prefer saving time in typing a code, especially when our rank depends upon the time we take for it.

Including <bits/stdc++.h> header file includes all the standard file even if we don’t want to use all of them, and it increases the compilation time, but in contests, algorithms are generally all what matter, compilation time is not very important unless it is in the limits.


Advantages of using this header file :

            1.    We can save time by not typing all the include files separately and just typing one.

            2.    We don’t need to remember all the include files separately for all the functions we use.


Disadvantages of using this header file :

            1.    It is not a standard header file of GNU C++ library, so we can’t compile our program using this library in every compiler.

            2.    It includes many unnecessary things, and compilation time increases.

            3.    This header file is not a part of standard C++ so this is non-portable, and therefore it’s use must be avoided.


So yes this is all we have for you on this, hope you have an adequate amount of knowledge about this topic now. Thank you for giving this a read. We gonna bring you more such articles, subscribe our daily blog update by filling this form.


If you still have any doubt on this topic then do come to us via email "sophomoretechs@gmail.com" or via instagram "@coding.winds".


No comments:

Post a Comment