How print “Hello word” in C Language without the Semicolon

Here we will learn about how to print “Hello Word” in C language without the semicolon.

There are the different way to print “Hello Word” in C language without the semicolon.

1.By using “if” statement

2.By using “switch” condition

3.By using “while” loop

Now we will discuss one by one.So Let’s Start.

1.By using “if” statement

#include<stdio.h>

void main()

{

if(printf(“Hello Word”)){ }

}

Output:

Hello Word

2.By using “switch” condition

#include<stdio.h>

void main()

{

switch(printf(“Hello Word”)){ }

}

Output

Hello Word

3.By using “while” loop

#include<stdio.h>

void main()

{

while(!printf(“Hello Word”)){ }

}

Output

Hello Word

The above three way to print “Hello Word” in C Language without the semicolon.

sumankumar80

Hello Friends,I have written and developed this website because you can learn technology easily ,prepare for the placement and also for the any type of examination . By :Suman Kumar

Leave a Reply

Your email address will not be published. Required fields are marked *