Write C program without semicolons.
This is a very funny idea that writing C program "Hello World" without semicolons, though it is really useless.
We can use the best of C syntax:
- IF statement:
if(printf("Hello World!\n")){}
- WHILE statement
while(printf("Hello World\n") && 0){}
or
while(printf("Hello World\n"), 0){}
Actually I write a console minesweeper game in C without using any semicolons. Check it out if you are interested in this:)
Written by Ciel
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#C
Authors
Related Tags
#c
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#