r/C_Programming • u/un_known033 • Jun 24 '26
Turbo C for C language
I am using turbo C for C language will that be okay coz the institution which I am going is using this will this affect? as I know this is very old
0
Upvotes
7
u/mikeblas Jun 24 '26
If your school is using it, you don't have much choice.
3
u/Computerist1969 Jun 24 '26
It'll work. It's how I learnt C (alongside Lattice C on the Amiga). Almost 40 years ago.
1
u/mc_pm Jun 24 '26
I used Turbo C for a while - but that was loonnnnnnng ago. But if that's what they are using, then it should be fine (as long as it runs...)
1
u/OtherOtherDave Jun 24 '26
Why wouldn’t you use the software your school’s expecting you to use?
1
u/TheOtherBorgCube Jun 25 '26 edited Jun 25 '26
Getting it to run on a modern windows OS might be a challenge. If you're running say windows 7,8,10,11 you're probably need to run TC inside say the dosbox emulator.
I'm not sure that TC made it to even C89 compatibility.
If you're looking to have an actual career programming C after this, you'll need to study what C89 / C99 / C11 / C23 give you, and gain some practical experience using say gcc or clang.
Beware the 64K segment limit. For all but the smallest programs, you're going to learn about the brain-ache of
nearandfarpointers, and memory models liketiny, compact, small, medium, large and huge.Your programs have full access to a whole 640K (yes, that's K - seriously!) of memory. No M or G for you.
Your computer might have Ferrari specs, but TC turns it back into a horse drawn cart.
Further, there is no memory protection, so badly written code will crash your entire virtual machine.
Not to mention that being an archaic DOS program, you only have 8.3 filenames, so don't start using files/folders with long names containing spaces.
Also beware of tutors who think these things are valid:
void mainis a thing.mainreturnsintgets(buffer)is how to read user input.getsis so awful it's been removed from the C standard.fflush(stdin)somehow cleans up the input stream - maybe, but only on TC. It's nonsense everywhere else.i++ + ++iand other multiple side effect expressions have a known value. They don't.1
u/RealisticDuck1957 Jun 24 '26
Unlike some other programming languages, C code written to good form, to compile on such an old compiler, will still work as well with a modern compiler.
-1
u/un_known033 Jun 24 '26
I don't have to learn the new c language