|
|
|
|
![]() ![]() |
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, |
|
|
|
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 Isn't it a bool? |
|
|
|
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)not bored, posted it coz.. i liked the ques... 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"......... |
|
|
|
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 |
|
|
|
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) That's the answer.... Good thinking..... |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 6th October 2008 - 07:13 PM |