✏️ Explanatory Question

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

👁 861 Views
📘 Detailed Answer
💡

Answer with Explanation

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 . . .