Questions tagged [turbo-c]

Turbo C was an Integrated Development Environment and compiler for the C programming language from Borland, released in 1987. It had been re-release as freeware version 2.01 by 2006.

First introduced in 1987, it was noted for its integrated development environment, small size, fast compile speed, comprehensive manuals and low price.

Today, Turbo C is considered obsolete. It is a 16-bit compiler for DOS environments, and as such cannot access more than 640 KB of memory (and even that only with difficulty), and cannot interoperate with 32- and 64-bit code in modern operating systems. Additionally, due to its age, its standard library differs in some significant fashions from modern C libraries. Plainly put, it is not an appropriate tool for many development tasks today.

Despite this, it is sometimes used in introductory C programming courses, particularly in India. Students using Turbo C should keep its limitations in mind.

273 questions
2
votes
4 answers

How to compile a program of the C language manually on MS-DOS instead of Borland

I need to compile a program in MS-DOS. I have the Borland editor, and I can compile the program using Alt + F9, but what does it do at the backend? I want to compile it in MS-DOS. I’m trying this: cd c:\tc\bin tcc -o hello.exe hello.c where hello.c…
AsadYarKhan
  • 678
  • 2
  • 14
  • 31
2
votes
1 answer

Solving this pattern using abs() [I GOT MY OUTPUT.. CLOSED]

P.S. I'm a beginner and I was trying to find the following output : 1 1 2 3 1 2 3 4 5 1 2 3 4 5 6 7 1 2 3 4 5 1 2 3 1 and here's my try : #include #include void main() {…
Blu
  • 21
  • 2
2
votes
1 answer

How to trigger animation in Turbo-C with a mouse?

I am currently working on a project in Computer Graphics in C language. Our professor wants us to make a project which consists of animation, but which gets triggered on clicking by mouse and not keyboard. I searched on the internet for solutions,…
2
votes
1 answer

Turbo C gives Output as 0.000000

I have set the correct directory paths for Turbo C. But yet it gives the output as 0.000000 Following is the program: #include #include #include void main() { int n; float r, si, ci, p; clrscr(); …
Paramasivan
  • 39
  • 1
  • 8
2
votes
7 answers

No output when running program

I had a issue with running a c-program. I am using Turbo C++ compiler but when I write a code and compile there is no problem with compiling. But when I run program is doesn't display any output. This is the code: #include int main() { …
Bhumesh Polaswar
  • 23
  • 1
  • 1
  • 3
2
votes
1 answer

textcolor() and textbackground() in C

I am having a project using C (the compiler I think I am using is Turbo C++ 3.0). I used some textcolor() and textbackground() functions to color some text. When I run it the first time, the console is in its normal colors—white text on black…
Francis Rubio
  • 175
  • 4
  • 18
2
votes
3 answers

Problem occur in case structure

I am doing my project to implement a typing tutor application in turbo C compiler (this is the limit), this function is actually a look up table for x,y and key character but it is returning a garbage value at first value of that I passed in…
Umair Khan
  • 193
  • 1
  • 2
  • 11
2
votes
0 answers

Undefined symbol _main in TC

I have 4 .c files, one called main.c with main() but I get a linking error "undefined symbol _main in module c0.ASM." I am using TC. I've searched on this site and the web, and found things like: undefined symbol for architecture x86_64 in compiling…
2
votes
1 answer

I keep getting an error in the execution of this function

Here mainopp() is my primary menu function for a program. Everytime I enter some value other than 1/2/3/4 it shows the error dialog, takes a ch input (due to the getch()) but then instead of going back and re-running the same function, it somehow…
NSachdeva
  • 51
  • 5
2
votes
1 answer

using windows debugger to view a memory location written to in C?

I have Turbo C and windows debug running in dosbox I have this C program, it has two main lines, as you can see. int a=5 and then a line to show the address of a, printf("address of a=%x",&a) I run it It seems to tell me that a has been…
barlop
  • 12,887
  • 8
  • 80
  • 109
2
votes
1 answer

turbo c graphics no error but doesn't run

The following code doesn't have any error but it won't run. There's just a flash on the screen when I run it. It doesn't provide any output. what do I have to do? #include #include void main() { int gd = DETECT, gm; …
2
votes
3 answers

How to draw picture in GUI window using it's pixel values in c?

I want to read bmp image and draw the pixel values in GUI window but it is not giving me the correct result,the picture it is showing is completely different then the original image I don't know where I am going wrong. any help? int main() { char…
user3370649
  • 57
  • 1
  • 8
2
votes
3 answers

linker error: undefined symbol _sum in module my.c

I am getting following error when I add user defined method in library using turbo c linker error: undefined symbol _sum in module my.c I followed all steps properly: // 1. create addition.c containing function definatio and compile…
user3575428
  • 21
  • 1
  • 1
  • 4
2
votes
1 answer

Use of kbhit() with while loop

Here is the program. void main( ) { int h, v; h = 1; v = 10; while ( !kbhit( ) || h <= 80 ) { gotoxy( h, v ); printf( "<--->" ); delay( 200 ); clrscr( ); h = h + 1; } getch( ); } I am…
UmairKhan
  • 108
  • 1
  • 10
2
votes
1 answer

"Unterminated string" when including quote in string literal on Turbo C compiler

I have this on my program and it shows an error saying : Unterminated string. char Tok[63][63] = {"%%##","\""}; Is there other way to declare the double quotation mark as a string?
LorenzKyle
  • 69
  • 10