Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
C And C++ Tutorial
→
C And C++ Interview Questions in C And C++ Tutorial
→
What Is The Difference Between Global Variables A...
1.
What Is The Difference Between Global Variables And Static Variables?
Answer»
The
SCOPE
of the variable describes that the variable is accessible at certain point in the program or not.
The
DIFFERENCE
between global variables and static variables
LIES
in this concept only.
The scope of the global variables remains through out the program also the life
SPAN
of these variables is through out the program.
The scope of the static Variables remains within the
BLOCK
of code in which they are created but the life span remains through out the program.
Thus, the main difference is between the scope of both type of variables.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
What Is Null Pointer?
What Do You Know About Near, Far And Huge Pointer?
What Is Dangling Pointer?
What Is A Unnitialised Pointer?
What Is A Void Pointer?
What Is The Disadvantage Of Using A Macro?
Define Macro?
What Is The Prototype Of Printf Function?
What Do You Mean By Volatile Variable?
What Is The Difference Between Global Variables And Local Variable?
Reply to Comment
×
Name
*
Email
*
Comment
*
Submit Reply
Your experience on this site will be improved by allowing cookies. Read
Cookie Policy
Reject
Allow cookies