Saturday, March 3, 2012

Print Hello World

Printing "Hello World" to screen without using a single semicolon in C

 

#include<iostream>

int main()
{
    if (printf("Hello World \n")) { }
}
 
Or
 
#include<iostream>

int main()
{
    while (printf("Hello World") > 20) { }
} 

 

No comments:

Post a Comment