What is the difference between C# and C#.NET?

What is the difference between using Turbo C and GNU C/C++?

  • See I've been using Turbo C for compiling and writing my C programs for some time. I have a project where they say specifically use GNU C/C++ . I was just wondering. Is there any real difference or if I submit the .C file would that be the same thing?

  • Answer:

    I think this question has been answered already ..

Anmol Singh Jaggi at Quora Visit the source

Was this solution helpful to you?

Other answers

Turbo C that you are using uses 16bit compiler where as GCC is 32 bit compiler. The real difference in your case come in the sizes of your basic primitives that you might have used in your program such as int, float etc. e.g short int in 16 bit compiler is 2 bytes where as in 32 bit machine is 4 bytes. To list all differences run a sample program listing size of primitives using "sizeof()" operator. e.g running few lines in code blocks IDE using GCC compiler I get the following output: sizeof short int = 2 sizeof int = 4 sizeof float = 4 sizeof long int = 4

Himanshu Maurya

GNU C/C++ is used in all industries for development while Turbo C is used in (indian) colleges for academic purpose which is not cool, so quit using it and switch to GNU C/C++

Puran Chand Rajpurohit

Apart from the 16-bit/32-bit difference, Turbo C is obsolete -- on second thoughts, fossil might a better adjective. It is buggy, yes. It has non-standard implementation for standard constructs. e.g. Try this snippet in both Turbo C and GCC. #include<stdio.h> int main() { for(;0;) { printf("Bazinga!!\n"); } return 0; } It has several non-standard functions/libraries -- one has to either avoid using them altogether or bear in mind all the time which are standard ones and which aren't. I believe there are numerous applications written using Turbo C in the stone age that won't run on modern computers.

Caro Kann

Turbo C is primitive, not standard and a nightmare; it actually should be completely banned from teaching environments! C++ evolved a lot from the Turbo C era: It has now a lot of new constructs, exception handling, STL, template metaprogramming, all C++14 nice stuff and so on...

Ernesto Bascón

Turbo C compiler supports far pointers whereas GCC compiler doesn't. Turbo C is a 16bit compiler whereas GCC is a 32 bit compiler. The Gcc compiler can  support multiple languages such as C,C++,Java,Fortran,Pascal etc whereas in turbo c compiler ,it doesn't support multiple languages. GCC compiler is a free software. ...Whereas in turbo c compiler, it is not a free software. The GCC compiler is a portable compiler,it runs on most platforms  available today.Whereas a turbo c compiler is not a portable compiler  .

Sahil Sinha

GCC does support C99, as well as C++03 and most of C++11 (as well as C11). Turbo C does not. GCC can generate code for your 16, 32 or 64bit platform. Turbo C is 16bit only. GCC is portable, and code can be run on most imaginable platforms. Turbo C does not.

Dorin Lazăr

There are several reasons for this; you can read the wiki page of each and contrast between the two. But the most obvious ones are: 1. TurboC is freeware, which means that even if it can be downloaded and used free, the source code remains hidden. gcc on the other hand is open source and therefore has been upgraded several times over the years 2. TurboC has limited capabilities and only a few libraries. Plus it hasn't been upgraded for a very long time. Whereas gcc has been frequently upgrades and still continuous to be upgraded if bugs were identified or better algorithms were determined. Plus, being open source a lot of developers have written open source libraries around gcc that make it more efficient choice as a compiler

Saifur Rahman Mohsin

Few more to add. 1. I think, TurboC only runs in DOS operating system. So you might end up making your program to have only few amounts of RAM. Also you might not be able to develop programs that require modern hardware access. There are FreeDOS and DoSBOX though. 2. On the other hand, gcc runs on most of the modern Operating systems. So you might have a decent amount of memory and pretty good hardware features available.

KK Velan

I can't say for certain, but Turbo C (surely you don't mean Embarcadero C++ Builder, its current successor by way of Delphi?) is very old, at least two rounds of revised standards behind, whereas GCC of any version you might currently be using is going to at the very least have full support for C++98 and C99, both of which are substantial advances over earlier versions. I think there's a simpler reason though; this is just conjecture, but C is a fairly low-level language and even standard-compliant code isn't always going to be portable from one compiler to the next. Your project giver probably has standardized on GCC as a baseline for compiler behavior, so while you might get something working on Turbo C, if it doesn't compile on GCC you haven't fulfilled the terms of the assignment. If I was a teacher or project lead, I'd probably institute a requirement along those lines - write on whatever you want, but if it doesn't work on my setup, it's useless to me. In conclusion, bite the bullet and use GCC if you're supposed to. All it will cost you is download time.

Brian Connors

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.