Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is wrong with using turbo C?

Tags:

c

c99

turbo-c

I always find that some people (a majority from India) are using turbo C. I cannot find any reason to use such outdated compiler... But I don't know what reasons to give when trying to tell them to use modern compiler(gcc,msvc,...).

like image 502
Nyan Avatar asked Oct 13 '10 02:10

Nyan


People also ask

Is Turbo C still in use?

Turbo C++ is a discontinued C++ compiler and integrated development environment originally from Borland.

Why do Indian colleges still use Turbo C?

Why do colleges in India still use Turbo C++ instead of any other IDE? Its because the syllabus haven't been changed since long time. The last time the syllabus changed was about 20 years ago(this is what my sir said to me or atleast thats what I heard), atleast the syllabus followed by my college.

Is Turbo C good for C language?

There are many compilers available for c and c++. You need to download any one. Here, we are going to use Turbo C++. It will work for both C and C++.

Which is better Turbo C or GCC?

In case of gcc they both are pointing to "I am a string" (gcc optimizes your code) whereas in turbo c they are not. Whether all string literals are distinct(that is, are stored in non overlapping objects) is implementation defined. In C++ your code invokes Implementation defined behaviour. Also see this question.


2 Answers

While there are plenty of reasons not to use Turbo C (it's old, predates standards, generates 16-bit code, etc.), it's not valid to answer a question like "How do I do X in Turbo C?" with "Just use GCC". That would be like somebody asking "How do I do X with my 1992 Toyota?" and you saying "Just get a newer car".

People who are using Turbo C are probably doing so because it's a requirement, not because they don't know about anything better. Odds are it's for a programming class where the assignments they turn in have to work in that compiler. When I was grading C++ assignments, it didn't matter what compiler the students used, but they had to compile and run properly with the compiler I was using.

like image 173
Gabe Avatar answered Sep 19 '22 23:09

Gabe


Turbo C is a DOS only product. This means that it no longer runs "natively" on 64-bit versions of Windows, and must be run inside the XP compatibility penalty box.

like image 34
Greg Hewgill Avatar answered Sep 20 '22 23:09

Greg Hewgill