GeeksforGeeks » C/C++ Programming Questions

print in if and else

(2 posts)

Tags:

No tags yet.

  1. mario
    Member
    Posted 1 year ago #

    if(TRUE) {
    printf(" Inside IF\n");
    } else {
    printf("Inside ELSE\n");
    }

    Is it possible to print both statements??

    Tks

  2. Venki
    Moderator
    Posted 1 year ago #

    #define TRUE (!printf(" Inside IF\n")).


Reply

You must log in to post.

RSS feed for this topic