Unary operator prefix and postfix modes
Posted by JanWan
Last Updated: March 03, 2012
  608

#include <stdio.h>

int a, b;

main()
{
/* set a and b both equal to 5*/
a = b = 5;
/* Print them, decrementing each time. */
/* Use prefix mode for b, postfix mode for a */
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d", a--, --b);
printf("\n%d %d\n", a--, --b);
return 0;
}

   
  
 
 
   

 
 
Sick!!!
 
this reminds me of the days in college when i was programming and everybody else was partying...... lol..