
- C Programming Tutorial
- C - Home
- C - Overview
- C - Environment Setup
- C - Program Structure
- C - Basic Syntax
- C - Data Types
- C - Variables
- C - Constants
- C - Storage Classes
- C - Operators
- C - Decision Making
- C - Loops
- C - Functions
- C - Scope Rules
- C - Arrays
- C - Pointers
- C - Strings
- C - Structures
- C - Unions
- C - Bit Fields
- C - Typedef
- C - Input & Output
- C - File I/O
- C - Preprocessors
- C - Header Files
- C - Type Casting
- C - Error Handling
- C - Recursion
- C - Variable Arguments
- C - Memory Management
- C - Command Line Arguments
- C Programming useful Resources
- C - Questions & Answers
- C - Quick Guide
- C - Useful Resources
- C - Discussion
Print “Hello World” without using any header file in C
Generally, we use header files in C/C++ languages to access the built-in functions like int, char, string functions. The function printf() is also a built-in function which is declared in “stdio.h” header file and it is used to print any kind of data on console.
Here is an example to print without header files in C language,
Example Code
int printf(const char *text, ...); int main() { printf( "Hello World" ); return 0; }
Output
Hello World
n the above program, we printed “Hello World” without using any header file in the program by declaring the printf() function. The declaration of printf() is as follows.
int printf(const char *text, ...);
- Related Articles
- Print “Hello World” in C/C++ without using header files
- Print Hello World without semicolon in C++
- C Program to print “Hello World!” without using a semicolon
- How to print "Hello World!" using Python?
- Python Program to Print Hello world
- Swift program to print Hello World!
- Haskell Program to print Hello World!
- Print “Hello World” with empty or blank main in C++
- Hello World using Perl.
- C++ "Hello, World!" Program
- Display hello world using React.js
- Print a pattern without using any loop in C++
- How to write "Hello World" in C#?
- Beginning C# programming with Hello World
- C program to print number series without using any loop

Advertisements