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
2 answers

When replacing keyboard interrupt (Interrupt 9) scanf doesn't appear to accept input

I'm writing the main program in Turbo-C and the functions are in assembly. My code is as follows: lastc.c: #include #include #include extern void eliminate_multiple_press(); // save old function adress in 32bit …
2
votes
2 answers

Unexpected Behaviour of do-while loop in C?

I was solving a programming problem in C language, came across in a book the code was as following :- #include #include void main() { int num; char another; do { printf("Enter a Number"); …
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
2
votes
1 answer

Conio.o unavailable in Dev C - C

I want to include Borland functions in dev compiler on windows. I searched Dev site and found the solution: to include conio.o. But i am using DEV 4.9.9.2 Compiler (Beta) and i cannot find anything named conio.o in thier folder please instruct me on…
user2833365
2
votes
2 answers

C: Unusual behavior of for loop in Turbo C compiler

I know this is a stupid question to ask but i am just asking this out of my curiosity. I just read this code somewhere: #include int main() { for ( ; 0 ; ) printf("This code will be executed one time."); return…
Himanshu Aggarwal
  • 1,803
  • 2
  • 24
  • 36
2
votes
0 answers

Strange behavior of simple For loop in C language

I was just curious to do it and find the result, but I got really shocked... Actually, when we do this: for(i=0; 0; i++) printf("hello"); it prints hello... which it should not. and if do like this: int a=0; for(i=0;a;i++) printf("hello"); it…
nsthethunderbolt
  • 2,059
  • 1
  • 17
  • 24
2
votes
4 answers

strstr to find a word in a string using c returning true all the time

Good Day, So I decided to go trough my C again and started making a simple search the word in a string. Here is my code: #include #include #include main(){ char word[100]; char sentence[100]; clrscr(); printf("Enter a…
magicianiam
  • 1,474
  • 7
  • 33
  • 70
2
votes
0 answers

How to use Ethernet interrupt with vdx-6354 (vortex86dx)

I am new to vdx-6354 (PC/104) and I am getting familiar with it @ my work. We need to send/receive data over Ethernet. I have managed to run DSOCKS library demo projects successfully but there is a problem. Our current project consists of notable…
NoneCoder
  • 41
  • 3
2
votes
2 answers

scanf() and floating point numbers in Turbo C

I created a structure as: typedef struct { float real, img; } cmplx; And I created a function as void input(cmplx *a) { scanf("%f + %f i", &a->real, &a->img); } and called the function from main as: cmplx a; input(&a); The execution stops…
cipher
  • 2,414
  • 4
  • 30
  • 54
2
votes
3 answers

How to access non-standard COM ports (USB->Serial, COM5+) in DOS/C?

I'm working with an in-house software tool that displays & logs formatted diagnostic data collected from the serial debug port of the product I develop embedded software for. It's in C and very old. It's built using Borland Turbo-C v1.01 (copyright…
laughingcoyote
  • 259
  • 2
  • 9
1
vote
1 answer

Best quick alternative compiler/IDE to Turbo C that supports audio and graphics

I am making a small 2d GAME PACK as my University project. I am using Turboc 3.0 as the compiler. I am at a stage where I need better graphics and sound. Ive spent days looking for a workaround on the net and by myself too including audio and better…
user1219198
1
vote
3 answers

This code run on Turbo C but not on gcc compiler?

This code run on Turbo C but not on gcc compiler Error:syntax error before '*' token #include int main() { char huge *near *far *ptr1; char near *far *huge *ptr2; char far *huge *near *ptr3; printf("%d, %d, %d\n", sizeof(ptr1),…
Dorjay
  • 85
  • 1
  • 5
1
vote
1 answer

Why is my program crashing when it reaches the for loop?

I have a problem with memset and a big for loop in Turbo C. I was programming a small Graphics library based on Mode 13h with Turbo C++ 3.00 on MS-DOS 6.22 on Virtual Box, when the code started crashing. I know that Turbo C is really outdated, but…
SlickSpore
  • 31
  • 4
1
vote
1 answer

Borland vs. MingW/GCC compilation speeds..

I'm a long time Borland users ( since Turbo C ) ( until BC5.2 ). I've been using MingW/GCC with CodeBlocks for about a year now, mainly for the extra support esp. native 64bit integers. Anyway, I have a query regarding compilation speeds. I have a C…
user967007
1
vote
1 answer

Directing pointer to struct causes expression syntax error

This maybe a completely obvious error but I can't figure out why my code below won't work. I'm rather unfamiliar with C, though I have made some programs using it. I'm using Turbo C (v.3.2), so that might also be the issue; however, I'm not…
1
vote
2 answers

No module definition file specified

So i have this code, the snippet is given below. list* init(list* list1) { list1->head = NULL; list1->size = 0; return list1; } list1 is a linked list and init is called from main function. now on the line list1->head= NULL, after i run the…
Kraken
  • 23,393
  • 37
  • 102
  • 162