Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Global and Local Variables
Name: arsenal Date: March 18, 2009 at 05:38:12 Pacific OS: Windows XP Subcategory: Opinions
Comment:
What different between Global and Local Variables???
Summary: Algorithm Declare count As Integer Control Declare num As Integer Declare total As Integer Declare avg As Real count = 0 total = 0 num = 90 avg = Process AvgSoFar( total, num ) num = 95 avg...
Summary: Is there any way, in C, to distinguish between a global variable and a variable with the same name declared locally in a function? Or do I have to give it a different name? (I know, for example, that ...
Summary: Right except for local variables declared as static or register. statics retain their values on re-entry and are sort of global but within local scope. registers do not use the stack at all but that...