New Android apps UniqueKey

Showing posts with label C Tricks. Show all posts
Showing posts with label C Tricks. Show all posts

Monday, 6 October 2014

Print "HELLO" Without using any semicolon in C



#include
main( )  
{  
  if (printf("HELLO"))  
  {  
  }  
}  


#include<stdio.h>  
main( )  
{  
   switch (printf("HELLO"))  
   {  
   }  
}


#include<stdio.h>  
main( )  
{  
  while (!printf("HELLO"))  
  {  
  }  
}

Print "HELLO" Without using printf( ) in C



#include<stdio.h>  

main( )  
{  
  puts("HELLO");  
}

Print "HELLO" Without main( ) in C



#include<stdio.h>  
#define begin main  
begin( )  
{  
   printf("hello\n");  
}