Difference between Turbo C++ and Dev C++ - GeeksforGeeks (2024)

Improve

Improve

Like Article

Like

Save

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.

Last Updated : 24 Aug, 2020

Like Article

Save Article

Share your thoughts in the comments

Please Login to comment...

Difference between Turbo C++ and Dev C++ - GeeksforGeeks (2024)
Top Articles
Latest Posts
Article information

Author: Edmund Hettinger DC

Last Updated:

Views: 6169

Rating: 4.8 / 5 (58 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Edmund Hettinger DC

Birthday: 1994-08-17

Address: 2033 Gerhold Pine, Port Jocelyn, VA 12101-5654

Phone: +8524399971620

Job: Central Manufacturing Supervisor

Hobby: Jogging, Metalworking, Tai chi, Shopping, Puzzles, Rock climbing, Crocheting

Introduction: My name is Edmund Hettinger DC, I am a adventurous, colorful, gifted, determined, precious, open, colorful person who loves writing and wants to share my knowledge and understanding with you.