Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can I print hello in C without semicolon?

how can i print hello in c without semicolon?

user-image
Question added by Palash Kothari , Sr.Software Test Engineer , Enbraun
Date Posted: 2013/07/13

itz really very simple.......u just have to use the printf() method as an argument of a conditional loop i.e.
while(), if(), switch()......
Method1: void main() { if(printf("Hello world")){ } } Method2: void main(){ while(!printf("Hello world")){ } } Method3: void main(){ switch(printf("Hello world")){ } }

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.