How to printf "Hello World" without using a semicolon
How to use printf function without semicolon?
There are several ways to do this, below are some of the most popular ones:
- switch(printf("Hello, World!\n")) { }
This exercise has no particular use, but it keeps puzzling the newbies, and most of the companies in India happen to ask this question in interviews.
0 comments:
Post a Comment