Open In App

Difference between Turbo C++ and Dev C++

Last Updated : 24 Aug, 2020
Improve
Improve
Like Article
Like
Save
Share
Report

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




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


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




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




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.


Like Article
Suggest improvement
Previous
Next
Share your thoughts in the comments

Similar Reads