#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 :

  1. This helps when we want to get a high rank in time limit-based coding competition 
  2. We don't need to remember lots of the header files 
  3. Prevent chores(unwanted jobs)

Disadvantages :

  1. Due to including all the header files by 

     #include <bits/stdc++.h> 

  2.           The compilation time gets increased
  3. The size of the file also gets increased 
  4. Not considered to be a good practice
  5. On every line of need, all headers are in action and the function chooses a specific header file according to the need
  6. Can not use this in MSVC(Micro Soft Visual Code) but can in GCC

Comments

Pageviews