

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Why should I not #include <bits/stdc++.h>?
The <bits/stdc++.h> is a header file. This file includes all standard library. Sometimes in some coding contests, when we have to save time while solving, then using this header file is helpful.
In software engineering approach we should reduce the minimize the include. Using this header file, it will include lots of files, sometimes that may not be required in the program. So it may increase the compile time and program size.
Some of the big disadvantages of this header file is listed below
This <bits.stc++.h> is not a standard header file of GNU C++ library. So some compiler may fail to compiler source code with this header file.
Using this, it may require unnecessary longer time to compile.
As this is not a part of standard C++ library so it is non-portable
For this header file, every time the compiler tries to import the headers recursively every time the code is compiled.
- Related Questions & Answers
- Why should I use Hubspot?
- Why should I eat eggs?
- Why should we not use ++, -- operators in JavaScript?
- Why should eval be avoided in Bash, and what should I use instead?
- Why should I read the autobiographies of some great personalities?
- How does #include <bits/stdc++.h> work in C++?
- Why should we not store a number into a MySQL ENUM column?
- Why should students read newspapers?
- Why You Should Learn Python?
- Give 5 reasons why should I quit non-veg and be a vegan?
- Why You Should Learn Python Programming?
- Why should public wifi be avoided?
- Why You Should Update Your Apps
- Despite being rich, why am I not able to get happiness?
- Why should we use MySQL CASE Statement?