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 Post— zandiago 115Welcome aboard. If you have specific problems when trying to do a program...please post the source code here along with what you think may be wrong. Also post the errors you get, so we can take a look and help you. We are not in the business of doing your …
Jump to Post— Aia 1,977can any one write a c program in which both the if and else statements should execute???
Yes I can. Can you?
Jump to Post— doublex 1really? can you?
hmm... never thought about that...but from what i know, when the if clause is true the esle clause doesn't get to be tested, so it won't execute and when if cluase is false, then it will be executed the else clause.
can an expression …
Jump to Post— Aia 1,977here 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 …
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.