Thats correct it will print 'Bye'...  i just said "Hello " so everyone will
try to compile it and ask questions like you.

Thanks for showing intrest. Btw you can share such aptitude questions if u
have




On Fri, Aug 26, 2011 at 12:15 PM, Vijay Khandar <vijaykhand...@gmail.com>wrote:

> O\P-Bye I think so.........plz explain how its hello
>
>   On Fri, Aug 26, 2011 at 12:12 PM, Suraj Fale <surajfa...@gmail.com>wrote:
>
>>   Hey guys..
>>
>> I know in this group all geeky stuffs goes on... but following lines of
>> code i foind it intresting and thah y wants ot sahre it with you all. Its
>> very basic but some may of you may not know,
>>
>> int main()
>> {
>>   int i=0;
>>  if(i++)
>>    printf("Hello");
>>  else
>>    printf("Bye");
>>
>>  return 0;
>> }
>>
>> /* Output :-  Hello
>>  I m sure those who dont know properly how post and pre increment works
>> then it may be useful for them.
>> If any one has such syntaxtical funny code which might be very useful then
>> please do share because in lots of comapnies aptitude such codes are asked.
>> By the way above code was asked to me in MARVELL Interview.
>>
>> --
>> Regards
>> Suraj Fale
>> +91-9766103115
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Algorithm Geeks" group.
>> To post to this group, send email to algogeeks@googlegroups.com.
>> To unsubscribe from this group, send email to
>> algogeeks+unsubscr...@googlegroups.com.
>> For more options, visit this group at
>> http://groups.google.com/group/algogeeks?hl=en.
>>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Algorithm Geeks" group.
> To post to this group, send email to algogeeks@googlegroups.com.
> To unsubscribe from this group, send email to
> algogeeks+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/algogeeks?hl=en.
>



-- 
Regards
Suraj Fale
+91-9766103115

-- 
You received this message because you are subscribed to the Google Groups 
"Algorithm Geeks" group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.

Reply via email to