Welcome Guest ( Log In | Register)



 
Reply to this topicStart new topic
> Find The Condition
cse-icons
post Jan 10 2005, 12:05 PM
Post #1


Super Member
*********

Group: Members
Posts: 351
Joined: 19-October 04
From: India
Member No.: 1,824



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,
Go to the top of the page
 
+Quote Post
osknockout
post Jan 10 2005, 10:18 PM
Post #2


Super Member
*********

Group: Members
Posts: 399
Joined: 14-November 04
From: Elysium
Member No.: 2,280



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?
Go to the top of the page
 
+Quote Post
cse-icons
post Jan 11 2005, 04:42 AM
Post #3


Super Member
*********

Group: Members
Posts: 351
Joined: 19-October 04
From: India
Member No.: 1,824



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
Go to the top of the page
 
+Quote Post
s243a
post Jan 11 2005, 05:45 AM
Post #4


Super Member
*********

Group: Members
Posts: 408
Joined: 7-December 04
From: Nova Scoita, Canada
Member No.: 2,604



how about:
printf("if")==0
Go to the top of the page
 
+Quote Post
cse-icons
post Jan 11 2005, 08:52 AM
Post #5


Super Member
*********

Group: Members
Posts: 351
Joined: 19-October 04
From: India
Member No.: 1,824



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




That's the answer....
Good thinking.....
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

Topics Topics
  1. Condition Zero is soo cool(43)
  2. Tv Presenter Richard Hammond In Critical Condition After Jet Car Crash!(5)
  3. The Teenage Condition(10)
  4. -[sd]- Condition Zero Based Clan Recruiting(0)
  5. Counterstrike Condition Zero Clan?(0)
  6. Excel(0)
  7. Server Condition(1)
  8. Cs-condition Zero - Any Manual Available?(0)
  9. Condition Zero(0)


 



- Lo-Fi Version Time is now: 6th October 2008 - 07:13 PM