Related Articles

Related Articles

Difference between Turbo C++ and Dev C++
  • Difficulty Level : Easy
  • Last Updated : 24 Aug, 2020

1. Turbo C++ (TC) :
It is a compiling software used for C and CPP Language. The initial release was in May 1990 but the first stable version released in September 2008. It takes more memory and time to load as compared to Dev C++. Turbo C++ is the compiler from which most of us start our coding life in school/college.

2. Dev C++ :
Dev C++ is also used for C and CPP Language. The first stable release was in April 2015. It is fast as compared to Turbo C++. Dev C++ is very much similar to Online Compilers which we used in Coding Competitions.

Let us see the difference between the two using a program. To understand this you must have basic knowledge of C++.

Code in Turbo C++ :

filter_none

edit
close

play_arrow

link
brightness_4
code

#include <conio.h>
#include <iostream.h>
void main()
{
   clrscr();
   cout << "Hello Geeks!"
   getch(); 
}

chevron_right


Note –
This program is written as per standards of Turbo C++ software only. This may not run in online compilers or Dev C++.



Code in Dev C++ :

filter_none

edit
close

play_arrow

link
brightness_4
code

#include <iostream>
using namespace std;
int main()
{
   cout << "Hello Geeks"
   return 0; 

chevron_right




Difference between Turbo C++ and Dev C++ :

S.NO. Turbo C++ Dev C++
1. In Turbo C++, there are 2 header files. #include<conio.h> is extra which is not present in code of Dev C++. This header file basically contains the getch() function which is used to return the program successfully. In Dev C++ code, we use return 0 which is by default contained by main() function.
2. Namespace contains the basic cin, cout and other keywords. But we do not use it in Turbo C++, because we write iostream.h which contains everything in itself. In Dev C++, we write namespace std because the header file iostream does not contain cin, cout.
3. In Turbo C++, previous program data is saved as garbage and next time appears on screen. So clrscr() function is required. In Dev C++, each time after a compile and run, a new window popups. So, we do not need to clear screen used by previous program.
4. In Turbo C++, graphics are installed by default. In Dev C++, we need to manually install the graphics.

Rated as one of the most sought after skills in the industry, own the basics of coding with our C++ STL Course and master the very concepts by intense problem-solving.

My Personal Notes arrow_drop_up
Recommended Articles
Page :