Jump to content
xisto Community
Sign in to follow this  
cse-icons

Find The Condition

Recommended Posts

Hello friends,

Here is another one of C Question.....

(This is a pretty easy one...... if u think in the right direction. Give it a try...)

main()[/br]{[br][/br] if (<CONDITION>)[br] {[/br]         printf("if");[br] }[/br] else[br] {[/br]         printf("else"); }[br][/br]}

Fill in the condition to get the output value : ifelse

Regards,

Share this post


Link to post
Share on other sites

a)you're boredb)you're a true newbie looking for practicec)you're a comp student :rolleyes:Isn't it a bool?

Share this post


Link to post
Share on other sites

a)you're bored

b)you're a true newbie looking for practice

c)you're a comp student :rolleyes:

 

Isn't it a bool?

<{POST_SNAPBACK}>


a)not bored, posted it coz.. i liked the ques...

B)i am not a newbie..

c)and yeah, i have finished my comp science course...

 

in c languge.. nything not equal to 0 in an if condition is true... got the hint....

if u directly insert a value there...... it will print either "if" or "else" but what i need is "ifelse"......... :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.