that's extremely odd, but what ever floats their boat. Thanks, Tyler Littlefield email: [EMAIL PROTECTED] web: tysdomain-com Visit for quality software and web design. skype: st8amnd2005
----- Original Message ----- From: Jaspreet Singh To: [email protected] Sent: Friday, October 17, 2008 9:22 PM Subject: Re: [c-prog] what's the condition for Hello world.... On Sat, Oct 18, 2008 at 6:24 AM, Tyler Littlefield <[EMAIL PROTECTED]> wrote: > um. what condition? > if 1==1 would work, but why are you using an if statement. > > Thanks, > Tyler Littlefield > email: [EMAIL PROTECTED] > web: tysdomain-com > Visit for quality software and web design. > skype: st8amnd2005 > > ----- Original Message ----- > From: jugal_panchal > To: [email protected] > Sent: Friday, October 17, 2008 8:53 AM > Subject: [c-prog] what's the condition for Hello world.... > > what is condition so we will get HelloWorld output in following code > > if "condition" > printf("Hello"); > else > printf("World"); if (!(printf("Hello"))) printf("Hello"); else printf("World"); These kind of **weird/stupid** questions are sometimes asked in interviews here in India. Not sure what the interviewer wants to actually test here. Last time I was asked this question in an interview, I asked back to the interviewer for the purpose / objective of this question and he had no answer and not surprisingly I never got a call back from the company which btw is a top IT company famous all over the world. Thanks!! and have a nice day!! Jaspreet [Non-text portions of this message have been removed]
