Thursday 23 August 2012

How to Create and Run a C program


How to create a new C Program using Turbo C++ Version 3.0?
  • Open the bin folder ("C:\TC\BIN")
  • Click on "TC" icon as shown below 
  • TC Icon
  • You will see the following screen:
  • Tourbo C Screen
  • Now, Click on File->New. Please find image below for your reference
  • Create new file
  • Write your C Program. Press F2 (or File->Save) to save your program. On pressing F2, pop window will open (as shown below). You need to specify the name of the program.
    Note:
    For C Program, use .C as extension.
    For C++ Program, use .CPP as extension.
  • Save C Program

How to run a C Program using Turbo C++ Version 3.0?
  • Installing Tourbo C is very simple and effortless. Similarly, compiling and running C Program is very simple and effortless.
    Please make a note that, we can compile and run C Programs without saving it. 
  • To compile a C Program you can either press Alt+F9 or Compile->Compile. After you compile your C Program you will see the following screen.
  • Compile C Program
  • To run a C Program you can either press Ctrl+F9 or Run->Run. After you run your C Program you will see the output screen as shown below.
  • Run C Program

These are the steps you need to follow to create and a run a C Program successfully. In case you have any queries related to installation then kindly post a comment. I will definitely reply to your queries.

No comments:

Post a Comment