Jul 25, 2008

Find The Condition

Free Web Hosting, No Ads > CONTRIBUTE > Computers > Programming Languages > C/C++ Programming

free web hosting

Find The Condition

cse-icons
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...)

CODE
main()
{

if (<CONDITION>)
{
        printf("if");
}
else
{
        printf("else");
}

}


Fill in the condition to get the output value : ifelse

Regards,

Reply

osknockout
a)you're bored
b)you're a true newbie looking for practice
c)you're a comp student laugh.gif

Isn't it a bool?

Reply

cse-icons
QUOTE(osknockout @ Jan 10 2005, 10:18 PM)
a)you're bored
b)you're a true newbie looking for practice
c)you're a comp student laugh.gif

Isn't it a bool?
*



a)not bored, posted it coz.. i liked the ques...
cool.gifi 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"......... smile.gif

 

 

 


Reply

s243a
how about:
printf("if")==0

Reply

cse-icons
QUOTE(s243a @ Jan 11 2005, 05:45 AM)
how about:
printf("if")==0
*




That's the answer....
Good thinking.....

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.
Confirm Code:

Similar Topics
Looking for condition

Searching Video's for condition
advertisement



Find The Condition



 

 

 

 

ADD REPLY / Got an Opinion! Remove these ADs! RAPID SEARCH! Free Web Hosting [X]
Express your Opinions, Thoughts or Contribute more info. to help others.
Ask your Doubts & Queries to get answers, So that "Together We can help others!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE