How will you print "Hello World" without semicolon in c programming Language?

Long Answer
Views 713

Answer:

You can use this below two code Code 1:

#include<stdio.h>
int main(void)
{
 switch(printf("Hello World 
"));
} 

Code 2:

#include<stdio.h>
int main(void)
{
 switch(printf("Hello World 
")){}
} 

Output
Hello World
Press any key to continue . . .

Related Articles:

This section is dedicated exclusively to Questions & Answers. For an in-depth exploration of C Programming Language, click the links and dive deeper into this subject.

Join Our telegram group to ask Questions

Click below button to join our groups.