Print Hello World without using Semicolon : C Program

Write a C program to print hello world without using semicolon. It’s an interesting problem, As in C code every line is terminated with a semicolon. So, how do we write a c program to print hello world without using semicolon. This problem is also important in terms of interview.

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

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

Tagged , , . Bookmark the permalink.

About WebRewrite

I am technology lover who loves to keep updated with latest technology. My interest field is Web Development.