C Program to Print Hello World without using Semicolon

Write a C program to print hello world without using semicolon. It’s an interesting problem as in C every line is terminated with a semicolon. So, how do we write a c program to print hello world without using semicolon.

Interview Questions

Programming Objective Question

C Program to Print Hello World without Using Semicolon

Let’s solve this problem. In C, you can’t directly write a statement without using a semicolon. But you can use condition to print hello world without using a semicolon. Seems confusing, let’s write a code.

In this program, I have not used a semicolon and we have printed hello world successfully without using any semicolon in our program.

Swap two numbers using call by reference

Subscribe Our Tutorials

Get Latest Updates on Facebook

Swap two numbers using a third variable

C, C++ Programming questions for practice.

While Loop to Print Hello World without using Semicolon

In this example, we use while loop to write a program to print hello world without using a semicolon.

Switch Statement to Print Hello World without using Semicolon

Programming Books

Programming and Data Structure Books on Amazon India

Programming and Data Structure Books on Flipkart

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.
Tagged , , . Bookmark the permalink.