can any one write a c program in which both the if and else statements should execute???
boyz -8 Light Poster
Recommended Answers
Jump to Postno. Nowhere does it say it has to be during the same execution run of the block ;)
for (int i=0; i<2; i++) { if (i == 0) { // do something } else { // do something else } }
Jump to Posthere the if condition is not executing ... only the statement after the if deywor is getting displayed...
the if conition is false always and so the condition of the else part is being displayed!!!!
I THINK SO!!!:SCan something be here and there at the same time? Can something …
Jump to PostI disagree. If your oven has a conveyor belt build in to it, it would be possible to eat the first part of the pie, while the other part is still in the oven being baked. :)
I dare you to try it! :icon_twisted:
Jump to Postdidnt got ne more prgms to get the if and else part executed at the same time...
give it up .. it can never be done....
can u ever play football and vollyball at the same time????maradona was an exception:P
What???? You need to read this -- …
All 16 Replies
zandiago 115 Nearly a Posting Maven Featured Poster
WaltP commented: Getting tired of this lame message -- especially for someone that has many posts -2
Aia 1,977 Nearly a Posting Maven
doublex 1 Newbie Poster
jwenting 1,905 duckman Team Colleague
thinker -4 Newbie Poster
thinker -4 Newbie Poster
Aia 1,977 Nearly a Posting Maven
thinker -4 Newbie Poster
Jishnu 160 Posting Pro
Aia 1,977 Nearly a Posting Maven
Salem commented: Ditto +13
thinker -4 Newbie Poster
maye13 30 Newbie Poster
Nick Evan 4,005 Industrious Poster Team Colleague Featured Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
thinker -4 Newbie Poster
WaltP 2,905 Posting Sage w/ dash of thyme Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.