Monday 11 March 2013

Print Hello world without using any semicolon.


Print Hello world without using any semicolon.

Solution: 1
void main()
{
    if(printf("Hello world"))
{
    }
}

Solution: 2
void main()
{
    while(!printf("Hello world"))
{
    }
}

Solution: 3
void main()
{
    switch(printf("Hello world"))
{
    }
}


Blog Author: Vijay Kumar

Go to: Java Aptitude

No comments:

Post a Comment