Friday 15 April 2016

Compiling C Program in window 7 using Command Prompt

C language was developed by Dennis Ritchie in 1969 to 1973. In beginning, C was developed as system programming language for Linux. C language is used for Linux kernel, libraries and all of its supporting tools.
For execute C program in window 7 using command prompt we have perform some.
Required tools for system:
  1. Command Prompt
  2.  Turbo C

Step:-1 Install Turbo C

Install Turbo C or TC in system. ( Download TC from here and copy TC folder into C drive)
Turbo C or TC file created in C drive.


Step:-2 Setup TC for Command Prompt.

Copy Bin directory path.

Open System property.

Set Environment variable path and its value.





Then press ok to close window.

Step:-3 Creating directory for C programs

Open targeted drive and create directory in which all c program will store. Suppose we are creating directory in D drive.


Step:-4 Open notepad and create C program.

Write c program and save with .c extension.


Step:-5 Open Command Prompt





Here we use tcc command for compile C program.



Executable file name will be same as c file name.

Output

No comments:

Post a Comment