Re: [algogeeks] Why this is giving run time error ?

2011-08-04 Thread Tushar Kanta Rath
@Dipankar : thanks.i think,this is the right logic On Thu, Aug 4, 2011 at 11:10 AM, Dipankar Patro dip10c...@gmail.com wrote: Well I think the reason is very simple: When you enter the loop through L, the value of i is not initialized to 0, it is some garbage value. now while

Re: [algogeeks] Why this is giving run time error ?

2011-08-04 Thread Dipankar Patro
You are welcome Tushar. My suggestion is always to print the value of iter (i in this case) in a loop if you think there is something wrong. Helps 99% of times. On 4 August 2011 20:13, Tushar Kanta Rath tusharkanta.r...@gmail.comwrote: @Dipankar : thanks.i think,this is the right

[algogeeks] Why this is giving run time error ?

2011-08-03 Thread TUSHAR
#includestdio.h main() { int j=4,i; goto L; for(i=0;ij;i++) { L: printf(%d,j); } } why this is giving infinite loop.Runtime error ? -- You received this message