Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   use printf without semicolon (http://www.go4expert.com/forums/printf-semicolon-t6611/)

Ziaur Rahman 29Sep2007 16:16

use printf without semicolon
 
Code:

#include<stdio.h>
main()
{
      if(printf("Ziaur Rahman"))
      {
      }
}


DaWei 30Sep2007 21:48

Re: use printf without semicolon
 
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.


All times are GMT +5.5. The time now is 23:57.