#include : Advantages and Disadvantages
#include <bits/stdc++.h> : Advantages and Disadvantages
introduction :
It is the header file that prevents chores and helps us to make our coding fast by excluding specific use of header files likewise by including only this file we can use vectors, strings and math operation
and get saves to use a bunch of lines of code
Advantages :
- This helps when we want to get a high rank in time limit-based coding competition
- We don't need to remember lots of the header files
- Prevent chores(unwanted jobs)
Disadvantages :
- Due to including all the header files by
#include <bits/stdc++.h>
- The size of the file also gets increased
- Not considered to be a good practice
- On every line of need, all headers are in action and the function chooses a specific header file according to the need
- Can not use this in MSVC(Micro Soft Visual Code) but can in GCC
The compilation time gets increased
Comments
Post a Comment