On Wed, 15 Dec 2004 15:58:59 -0000, vasanthan <[EMAIL PROTECTED]>
wrote:
>
>
>
> dear friends,
> last week i attended an innerview, i was asked a
> question regarding if-else statment
> please answer for this
>
>
> if(condition)
> printf("hello");
> else
> printf("world");
>
>
> wat should be the condition to print
> hello world ie, condition to execute both if& else statment
If you want to print "hello world"
the the code can be
if(!printf("hello"))
printf("hello");
else
printf("world");
but i dont think both the if and else statement can be executed at the
same time....
--
With Regards
Sarvex Jatasra
Software Engineer
Acme Technologies
+91-9891989156
+91-9350933295
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4558
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/