Possible Duplicate:
What’s the “condition” in C interview question?
void main()
{
if(CONDITION)
printf("Hello ");
else
printf("World");
}
Replace CONDITION with such a condition that both the printf statements get executed. You can't have a loop or other things in main() I found this code online,i am trying to think the logic behind it but i cant. Please help me out Thanks
if(fork() == 0)
...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With