Global Variables V/S Local Variable
Thread TagsAdobe Illustrator Adobe InDesign Adobe Photoshop Android Development Android Programming Android Studio Automation Testing C / C++ Programming Career Options College Lounge css digital marketing Digital Marketing / SEO Fireworks Graphic Design Graphic designing Graphics Design Graphics Designing HTML? Illustrator Internship Training java classes in pune java training institute in pune logo Design logo designing Magento Photoshop PHP Programming QA react-native SEO Single Page Website Testing Typography UI UI/UX Development UI Design UI Designing UI development User Interface UX Design Web Designing Website Design Wordpress wp
Log in with your username and password
Register for free!
Registration at Smart Mentors is completely free and takes only a few seconds. By registering you’ll gain:
- Full Posting Privileges.
- Access to Private Messaging.
- Optional Email Notification.
- Ability to Fully Participate.
- Author Replies
- February 9, 2019 at 10:33 am #53325
Global variables are proclaimed outside any function, and they can be gotten to (utilized) on any function in the program. Local variables are proclaimed inside the function and can be utilized just inside that function. It is conceivable to have local variables with a similar name in various functions.
1) Declaration – Variables are proclaimed outside any function.
2) Scope – Throughout the program.
3) Access – Accessed by a statement in the whole program.
4) Life – Remain in presence for the whole time your program is executing.
5) Storage – Stored on a settled area chosen by a compiler.
1) Declaration – Variables are pronounced inside a function.
2) Scope – Within a capacity, inside which they are proclaimed.
3) Access – Accessed just by the statements, inside a function in which they are proclaimed.
4) Life – Created when the function block is entered and annihilated upon exit.
5) Storage – Local variables are put away on the stack except if determined.
You must be register. Registration is 100% free.to reply to this thread.Please or