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

C Programming Language >   Decision Making of C Language >   switch case  

Short Question

780


Answer:

You can use this below two code Code 1:

#include
int main(void)
{
 switch(printf("Hello World 
"));
} 
Code 2:
#include
int main(void)
{
 switch(printf("Hello World 
")){}
} 
Output
Hello World
Press any key to continue . . .


This Particular section is dedicated to Question & Answer only. If you want learn more about C Programming Language. Then you can visit below links to get more depth on this subject.




Join Our telegram group to ask Questions

Click below button to join our groups.