The task is to write a program to print Hello World without using main() and semicolon.
As we already know how to print Hello World without the use of a semicolon. Now for writing without main() method, we will need a Macro.
- Print Hello World without semicolon in C/C++
- How to print a semicolon(;) without using semicolon in C/C++?
- C/C++ program for calling main() in main()
- C Hello World Program
- Writing first C++ program : Hello World example
- Program to print Hut
- Program to print the given H Pattern
- Program to print the pattern "GFG"
- C++ program to print all Even and Odd numbers from 1 to N
- Program to print 2D shapes
- Program to print the pattern 'G'
- Program to print the given Z Pattern
- Program to print the Sum of series -1 + 2 + 11 + 26 + 47 +.....
- Program to print the pattern ‘D’
- Program to print pattern
- Program to print DNA sequence
- Program to print the Cot Bed Pattern
- How can we write main as a class in C++?
- Program to Print Matrix in Z form
- Program to print Crown Pattern
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.