C Related File Extensions

Article by:
Date Published:
Last Modified:


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 (IDEs), 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.


Geoffrey Hunter

Dude making stuff.

Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License .

Related Content

No related content found.


    comments powered by Disqus