Turbo C Tutorial

Turbo C Tutorial thumbnail
Turbo C Tutorial

To use Turbo C, you will need to install and run Turbo C version 2.01 on a PC. To start Turbo C, enter TC at the DOS or Windows command prompt.

  1. Tutorial Code

    • Type in the following C program:

      #include <conio.h>

      main() {

      int a=50;

      clrscr();

      a+=5;

      printf("50 plus five equals %d",a);

      getch();

      }

    Testing

    • To run the program, press CTRL and F9 or select "Run" from the "Run" menu. If it doesn't work, check the code for mistakes. After looking at the results, press any key to return to the Turbo C interface.

    Explanation

    • The first line adds Turbo C code necessary for data input and output, while the second and third lines initialize the program with a variable set at 50. After this, semicolons separate each command.

      The fourth line clears the screen, the fifth adds five to the variable "a" and the sixth line displays the result. Finally, the 7th line instructs the Turbo C program to wait until the user presses a key.

Related Searches:
  • Photo Credit Photos.com/Photos.com/Getty Images

Comments

View all 10 Comments

You May Also Like

  • How to Use Turbo C

    Turbo C is the Integrated Development Environment (IDE) for the C programming language created and sold by the Borland Corporation. Originally founded...

  • How to Learn Turbo C

    In the early days of the personal computer, Borland International's Turbo C led the market for those who wanted to get into...

  • Turbo CAD Mac Pro Tutorials

    TurboCAD Mac Pro is a 2D and 3D computer aided design software application for the Macintosh. It provides a complete set of...

  • How to Install Turbo C

    With websites growing in popularity, it is more vital for a business to showcase its skills and what it has to offer...

  • Features of Turbo C

    Features of Turbo C. Borland's Turbo C, first introduced in 1987, applied the same integrated development model used by the Silicon Valley...

  • Data Types for Turbo C

    Data Types for Turbo C. Turbo C is a compiler and development environment for the programming language C. It came out in...

  • System Requirements for Turbo C

    System Requirements for Turbo C. Turbo C, first released in 1987, is a 16-bit C compiler for the Microsoft Disk Operating System...

  • How to Use Menus on Turbo C++

    Borland's Turbo C is a legendary C compiler and Integrated Development Environment that is used, even today, in some colleges and universities...

  • What Are the Functions of Turbo C?

    What Are the Functions of Turbo C?. Turbo C is a compiler for the programming language C. A compiler can be thought...

  • How to Claim Babysitting as Income on Taxes

    Money earned as a babysitter is considered self-employed income. If you earned more than $400 in the past year, you will have...

Related Ads

Featured