Computing.Net > Forums > Programming > Global and Local Variables

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

Reply to Message Icon

Name: arsenal
Date: March 18, 2009 at 05:38:12 Pacific
OS: Windows XP
Subcategory: Opinions
Comment:

What different between Global and Local Variables???


Please reply here back



Sponsored Link
Ads by Google

Response Number 1
Name: StuartS
Date: March 18, 2009 at 05:59:21 Pacific
Reply:

Global variables can be used throughout an application.

Local variables can only be used within the module or function in which they are declared.

Global variables should be avoided whenever possible unless they are absolutley necessary for the aplication.

Stuart


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Global and Local Variables

Pseudocode Explanation www.computing.net/answers/programming/pseudocode-explanation/12869.html

Global Variable vs. Local Variable www.computing.net/answers/programming/global-variable-vs-local-variable-/3215.html

Local Variable life span www.computing.net/answers/programming/local-variable-life-span/2272.html