use printf without semicolon

Ziaur Rahman's Avatar, Join Date: Oct 2006
Go4Expert Member
Code:
#include<stdio.h>
main()
{
      if(printf("Ziaur Rahman"))
      {
      }
}
DaWei's Avatar, Join Date: Dec 2006
Team Leader
So what the hell did you gain? You typed more characters than if you had just used the semicolon. Things like this are well known by professionals. You may generally presume that such an exercise is merely silly and a waste of time and effort.