C PROGRAMMING

C Related File Extensions

Date Published:
Last Modified:

Overview

The following table lists the standard file extensions used for C-related files. The extension normally indicates how far the file is through the compilation process. Note that many integrated development environments (IDE’s), and command-line compilers hide most of the individual compiler steps from the user.

File ExtensionDescription
file-name.cC source code which must be preprocessed.
file-name.iC source code which should not be preprocessed.
file-name.hC header file (not to be compiled or linked).
file-name.sAssembler code.
file-name.SAssembler code which must be preprocessed.
file-name.oObject file by default, the object file name for a source file is made by replacing the extension .c, .i, .s etc with .o. This can be changed with a command line parameter.
file-nameIf the file has no extension, this is usually the final executable (NIX systems).
file-name.exe, .dll, .comThe final executable on a Windows system.

Like this page? Upvote with shurikens!

Tags:

    comments powered by Disqus