

- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Print “Hello World” in C/C++ without using header files
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
int printf(const char *text, ...); int main() { printf( "Hello World" ); return 0; }
Output
Hello World
In 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 Questions & Answers
- Print “Hello World” without using any header file in C
- Print Hello World without semicolon in C++
- C Program to print “Hello World!” without using a semicolon
- Python Program to Print Hello world
- Hello World using Perl.
- How to print "Hello World!" using Python?
- Display hello world using React.js
- Print “Hello World” with empty or blank main in C++
- Beginning C# programming with Hello World
- C++ "Hello, World!" Program
- Hello World Program in Java
- Hello World in Dart Programming
- Standard header files in C
- Creating Java Hello World Program
- C++ Standard Library Header Files
Advertisements