Because for the first iteration, while loop isnt executed and hence flag
isnt set any value. But the condition for checking value in flag variable is
evaluated when it doesnt have any initialised value. Hence the runtime
error.

On Sat, Aug 27, 2011 at 3:18 PM, Amol Sharma <amolsharm...@gmail.com> wrote:

> why it is happening so....i mean it is initialised later
>
> what's the reason that it is giving run time error if not initialized at
> start
> --
>
>
> Amol Sharma
> Third Year Student
> Computer Science and Engineering
> MNNIT Allahabad
>  <http://gplus.to/amolsharma99> 
> <http://twitter.com/amolsharma99><http://in.linkedin.com/pub/amol-sharma/21/79b/507><http://youtube.com/amolsharma99>
>
>
>
>
>
> On Sat, Aug 27, 2011 at 3:13 PM, dipit grover <digo.d.b...@gmail.com>wrote:
>
>>  <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.
>



-- 
Dipit Grover
B.Tech in CSE
IIT Roorkee

-- 
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