View Single Post
Team Leader
6Jul2005,13:43  
coderzone's Avatar
What I can think of is

X = !printf("Hello")

so the program becomes
Code:
void main()
{
  if(!printf("Hello"))
  {
    printf("Hello");
  }
  else
  {
    printf(" World");
  }
}
As printf returns no of characters it prints out so the output would become Hello World as desired