How to Compile the C Source Code (.C files)

How to Compile the C Source Code (.C files)?


You need to place the .C (example.c) file to be compiled in the following location:

Now go to the command prompt (Start->Run->type cmd->Enter)
Make the following path as the present working directory (use the CD command):
To compile the file (example.c), use the following command:
bcc32 example.c
Now if there exists no error in the source code, you’ll get a compiled executable module
(example.exe) in the same location (C:\Borland\BCC55\Bin).
Now you have successfully compiled the source code into an executable file (.exe file).

Comments are closed.