RSS Forums RSS
Please support our C advertiser: Programming Forums

Changing the meaning of IF else statement

Join Date: Apr 2006
Location: Canada
Posts: 4,545
Reputation: John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all John A is a name known to all 
Rep Power: 17
Solved Threads: 284
Moderator
Featured Blogger
John A's Avatar
John A John A is offline Offline
Vampirical Moderator

Re: Changing the meaning of IF else statement

  #8  
Mar 28th, 2007
Originally Posted by Salem View Post
Seems simple enough
int main()
{
    if (!printf("welcome ")) {
        printf("welcome");
    } else {
        printf("to ieg");
    }
    return 0;
}

Wow... Salem! You never fail to impress me... (I'd give you more rep if the system would let me )
tuxation.com - Linux articles, tutorials, and discussions
Reply With Quote  
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 9:45 am.
Newsletter Archive - Sitemap - Privacy Statement - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC