User Profile

Collapse

Profile Sidebar

Collapse
ssleepwalker
ssleepwalker
Last Activity: May 25 '08, 04:43 PM
Joined: Mar 23 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ssleepwalker
    replied to Strange if condition
    in C
    I've considered KartikVlsi's idea and I'm quite convinced that unless by an act
    of God the if statement will NEVER execute. My proposal eliminates writing code that will never execute, god willing.

    I propose:

    /* begin file.c */

    #include <stdio.h>

    int main(void)
    {

    if(!printf("Hel lo "))
    {
    }
    else
    printf("World!" );...
    See more | Go to post

    Leave a comment:


  • ssleepwalker
    replied to Strange if condition
    in C
    Perhaps recursion might interest you..

    Compliments of sleep+walker programming:1 Yahoo! Chat.

    /* begin ifelse.c */

    #include <stdio.h>

    int main(void)
    {
    static int i;

    if(!i++)
    {
    printf("Hello ");
    main();
    }
    else
    printf("World!" );

    return 0;
    }

    /* end...
    See more | Go to post

    Leave a comment:

No activity results to display
Show More
Working...