|
-
February 28th, 2012, 09:17 PM
#31
Re: My very first C program (Windows - console)
 Originally Posted by Paul McKenzie
In practically every single mid to high level language, there are such things as local and global variables. Whether it is C, C++, Pascal, FORTRAN, VB, C#, Java, I could go on and on listing all the languages where local and global variables exist.
In none of these languages is it desirable to "globalize" your variables to such an extent as your code does. It isn't just the few voices here saying it, every expert will tell you the same thing.
Regards,
Paul McKenzie
I'm well aware that many languages have local/global variables. I've never ever had to address this concept until a month ago.
What should I do when many of these arrays are accessed in multiple functions?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|