Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Files Used in A C Program: Source Code File

Download as rtf, pdf, or txt
Download as rtf, pdf, or txt
You are on page 1of 3

FILES USED IN A C PROGRAM

Source code file


The source code file contains the source code of the program. The file extension of any C
source code file is ".c". This file contains C source code that defines the main function and
maybe other functions. The main() is the starting point of execution when you successfully
compile and run the program. A C program in general may include even other source code
files (with the file extension .cj.

Header Files

When working with large projects, it is often desirable to make sub-routines and store
them in a different file known as header file. The advantage of header files can be realized
when

1) The programmer wants to use the same subroutines in different programs.


2) The programmer wants to change, or add, subroutines, and have those changes be
reflected in all other programs.
Conventionally, header files names ends with a ",h" extension and its name can use
only letters, digits, dashes, and underscores.
While some standard header files are available in C, but the programmer may also
create his
'

own
defined

user

xforcT^tniversity Press 2011. All rights


reserved.

FILES USED IN A C PROGRAM contd.


Object Files

Binary Executable File


Object Files

Binary Executable File

You might also like