what is the difference between global variable & static
variable declared out side all the function in the file.
Answer Posted / vishnu
Both the variables are stored in data segment but difference
is in accessing the variable. Global variables can be
accessed though out the project (if multiple files exists)
whereas static variable accessed within the file where its
declared.
Is This Answer Correct ? | 15 Yes | 2 No |
Post New Answer View All Answers
Do pointers need to be initialized?
What is hash table in c?
What is function prototype in c language?
What is structure and union in c?
Where are local variables stored in c?
Write a c program to build a heap method using Pointer to function and pointer to structure ?
What is header file in c?
Explain what are the advantages and disadvantages of a heap?
Can you tell me how to check whether a linked list is circular?
What is a null pointer in c?
Explain void pointer?
Explain high-order and low-order bytes.
What is the value of uninitialized variable in c?
a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler
What do you understand by friend-functions? How are they used?