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,...).
Turbo C++ is a discontinued C++ compiler and integrated development environment originally from Borland.
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.
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++.
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.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With