Code:
if(condition) { printf("Hello"); } else { printf(" World"); }
if(condition) { printf("Hello"); } else { printf(" World"); }
fork()
as the condition although it would be a little random as to which branch ran first.
!printf("hello ")
does not actually cause the if cause to run it just makes it look like it might have. For exampleif(!printf("hello")) { printf("Goodbye"); } else { printf(" World"); }
if(!printf("Goodbye")) { printf("Goodbye"); } else { printf(" World"); }
if(!printf("Goodbye")) { printf("Goodbye"); } else { printf(" World"); }
Comment