Local variables in C not sticking around in loops? VS.net 2003 problem

  • Thread starter Thread starter kristersaurus
  • Start date Start date
K

kristersaurus

Hi.

I've got this really weird problem going on in visual studio.net 2003
where , within a function, i declare a variable, but when i try to
access it within a loop the compiler says it is undeclared. The
problem goes away when i declare the variable globally. What gives?
 
Back
Top