This blog consists of C and C++ programs. C and C++ programming is the basics to learn any programming language. Most of the programs are provided with their respective outputs. This blog also contains Data Structures programs using Object-Oriented Programming (C++). Some of the best books for learning C and C++ programming are also mentioned.

Friday 18 October 2013

Compilation and Execution of C and C++ Programs


Assuming that you are using a Turbo C or Turbo C++ compiler here are the steps that you need to follow to compile and execute your first C program…
  1. Start the compiler at C> prompt. The compiler (TC.EXE is usually present in C:\TC\BIN directory).
  2. Select New from the File menu.
  3. Type the program.
  4. Save the program using F2 under a proper name.
  5. Use Ctrl + F9 to compile and execute the program.
  6. Use Alt + F5 to view the output.

No comments:

Post a Comment