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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top