Print Hello World Without Semicolon C Program

 

C Program To Print Hello World Without Semicolon

Learn How To Print Hello World without Semicolon in C Programming Language. It is probably the very first C Program that every programmer begins with. This code demonstrates the legacy approach towards printing Hello World C Program in a new way.

A general Hello World C Program includes a printf(); statement within the main function with a terminating Semicolon.

 

The above code is just an example of the usual way of writing a Hello World Program. Now, let us see the new approach of writing it without using a semicolon at the end of the printf() statement. We have used a while loop within the main method. In a While Loop, you need not use a Semicolon to terminate the printf() statement.

Method 1: C Program To Print Hello World Without Semicolon using While Loop

Method 2: Display Hello World without using Semicolon in C Programming using Switch Case

Method 3: C Code for Hello World without using Semicolon using If Block

   

Output

C Program To Print Hello World Without Semicolon

In case you have any compilation errors or doubts in this C Program To Print Hello World without Semicolon, let us know about it in the comment section below.

Recommended Programs
3 Ways To Print Fibonacci Series 
Print Map of India in C Programming
Calculate Arithmetic Progression C Program
C Program To Calculate Sum of Even Numbers from 1 To N
Perfect Number C Program
100+ C Programs For Programming Interviews

4 thoughts on “Print Hello World Without Semicolon C Program

  1. Aditya Ghodke

    Can we also use for loop and do while loop in this Hello World code?

    Reply
    1. Tushar Soni Post author

      Yes, you can definitely use other looping constructs. However, you need to know how to work with the semicolons within a for loop if you want to implement it in here.

      Reply

Let's Discuss