DEV Community

Md Rasheduzzaman
Md Rasheduzzaman

Posted on

<bits/stdc++.h> in C++

It is basically a header file that includes every standard library.

People do focus more on finding the algorithm to solve a problem than on software engineering.

π˜Όπ™™π™«π™–π™£π™©π™–π™œπ™šπ™¨ 𝙀𝙛 π™—π™žπ™©π™¨/𝙨𝙩𝙙 π™žπ™£ π™˜++

βœ” In contests, using this file is a good idea, when you want to reduce the time wasted doing chores; especially when your rank is time sensitive.

βœ” This also reduces all the chores of writing all the necessary header files.

βœ” You don’t have to remember all the STL of GNU C++ for every function you use.

π˜Ώπ™žπ™¨π™–π™™π™«π™–π™£π™©π™–π™œπ™šπ™¨ 𝙀𝙛 π™—π™žπ™©π™¨/𝙨𝙩𝙙 π™žπ™£ 𝘾++

✘ bits/stdc++.h is a non-standard header file of GNU C++ library. So, if you try to compile your code with some compiler other than GCC it might fail.

✘ Using it would include a lot of unnecessary stuff and increase compilation time.

✘ This header file is not part of the C++ standard and is, therefore, non-portable, and should be avoided.

Image description

Read related articles:
What is the difference between C and C++?

Top comments (0)