Home
About Us
Contact Us
Bookmark
Saved Bookmarks
Current Affairs
General Knowledge
Chemical Engineering
UPSEE
BSNL
ISRO
BITSAT
Amazon
ORACLE
Verbal Ability
→
Programming
→
ASP Dot net Interview Questions in Programming
→
Explain the difference between the local variable...
1.
Explain the difference between the local variable and global variable in C?
Answer»
S.no
Local Variable
Global Variable
1.
Declared
INSIDE
function
Declared outside function
2.
Accessed only by
STATEMENTS
that are inside a function where they are declared
Accessed by any statement
THROUGHOUT
the program
3.
Created when
ENTERING
function block and gets destroyed when exits.
Stays in existence throughout the when the application is executing
4.
It is stored on the stack.
Stored in a fixed location.
Show Answer
Discussion
No Comment Found
Post Comment
Related InterviewSolutions
How to get string length of given string in C?
Write a program to find the biggest number of three numbers in C?
How we can insert comments in a C program?
Explain the difference between #include "..." and #include in C?
Explain the difference between structs and unions in C?
What are the string functions? List some string functions available in C.
What is the purpose of main( ) in C language?
Write a program to print numbers from 1 to 100 without using loop in C?
Write a program to generate random numbers in C?
What is modifier & how many types of modifiers available in C?
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