FileInfo

Languages

Overview

What is an H file? An H file is a header file referenced by a document written in C, C++, or Objective-C source code. It may contain variables, constants, and functions that are used by other files within a programming project. H files allow commonly used functions to be written only once and referenced by other source files when needed.

More Information H header files are typically used to store C function declarations, as well as macro definitions, which can be used by multiple source files. Header files can be inserted into a .C source code file using the #include directive. NOTE: H files may also store headers for C++ source code, but those headers are typically saved as .HPP files.

Popularity3.8/5

159 votes

Quick AppUsed by
VerifiedVerified by FileInfo.com The FileInfo.com team has independently researched the C/C++/Objective-C Header file format and Mac, Windows, Linux, and Android apps listed on this page. Our goal is 100% accuracy and we only publish information about file types that we have verified. If you would like to suggest any additions or updates to this page, please let us know .

Microsoft Visual Studio 2010 Icon

Breadcrumbs

DeveloperN/A
Popularity3.8 | 159 Votes

Previous / Next

In-Depth

.H File Extension

C/C++/Objective-C Header File

DeveloperN/A
Popularity
3.8  |  159 Votes
 

NEW: Open your .H file online with File Helper . View Online

What is an H file?

An H file is a header file referenced by a document written in C, C++, or Objective-C source code. It may contain variables, constants, and functions that are used by other files within a programming project. H files allow commonly used functions to be written only once and referenced by other source files when needed.

More Information

H header files are typically used to store C function declarations, as well as macro definitions, which can be used by multiple source files. Header files can be inserted into a .C source code file using the #include directive.

NOTE: H files may also store headers for C++ source code, but those headers are typically saved as .HPP files.

How to open an H file

Since header files are plain text files, you can open and view the file contents in a text editor. However, it's easier to edit *.h files and other source code files using a code editor like Microsoft Visual Studio or Apple Xcode . These editors provide helpful programming tools like line numbers, syntax highlighting, and source code error checking.

Programs that open or reference H files

Sort

Pricing

Program Name

Platform

Reset

X

Windows

File Viewer Plus

Get it from Microsoft

Free +

Microsoft Visual Studio 2022

Free +

Code::Blocks

Free

Eclipse IDE for C Developers

Free

Embarcadero C++Builder

Free Trial

Borland C++ Compiler

Discontinued

Free

BloodshedSoftware Dev-C++

gVim

Free

Any text editor

Mac

Apple Xcode

Free

Code::Blocks

Free

Eclipse IDE for C Developers

Free

GNU Compiler Collection (GCC)

Free

MacroMates TextMate

Free

MacVim

Free

Any text editor

Linux

Eclipse IDE for C Developers

Free

Code::Blocks

Free

GNU Compiler Collection (GCC)

Free

Vi

GNU Emacs

Free

Any text editor

Web

FileHelper.com

Free

Android

File Viewer for Android

Free +

Category: Developer Files

Updated: June 17, 2020

FAQ

What is an H file?
An H file is a header file referenced by a document written in C, C++, or Objective-C source code. It may contain variables, constants, and functions that are used by other files within a programming project. H files allow commonly used functions to be written only once and referenced by other source files when needed.
How do I open an .h file?
Since header files are plain text files, you can open and view the file contents in a text editor. However, it's easier to edit *.h files and other source code files using a code editor like Microsoft Visual Studio or Apple Xcode. These editors provide helpful programming tools like line numbers, syntax highlighting, and source code error checking.