Re: [algogeeks] Re: C aps ques

2010-12-14 Thread RAHUL KUJUR
for 2nd problem: statement inside the do-while is executed once. Now for the condition checking inside the while loop. The condition i++5 is evaluated which turns out to be true. So the rest of the part ++ch='F' is not evaluated and hence letter A is printed six times. Now when the condition i++5

Re: [algogeeks] Re: C aps ques

2010-12-14 Thread RAHUL KUJUR
correct me if I am wrong. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options,

Re: [algogeeks] Re: C aps ques

2010-12-14 Thread Saurabh Koar
Exactly!! On 12/14/10, RAHUL KUJUR kujurismonu2...@gmail.com wrote: correct me if I am wrong. -- You received this message because you are subscribed to the Google Groups Algorithm Geeks group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group,

[algogeeks] Re: C aps ques

2010-12-13 Thread siva viknesh
what's the output for following program? #includestdio.h int main() { int i = 0; char ch = 'A'; do{ printf(%c, ch); } while (i++ 5|| ++ch = 'F'); return 0; } (a) ABCDEF (b) AA BCDEF (c) A will be displayed infinitely (d) None of the above On Mon, Dec 13, 2010 at 10:39 PM, siva