what is diff between localstatic and globalstatis variable
possible 2 use in another file...?
Answer Posted / abdur rab
Local Static
============
The scope of the variable is only within the function where
it is declared, throughout the program. ie the value is
preserved until the end of the program.
Global Static
=============
The scope of the variable is only within the file where it
is declared, throughout the program. ie the value is
preserved until the end of the program.
Global Static variables are not visible outside the files
where they are declared.
Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
What is a dynamic array in c?
what is the function of pragma directive in c?
what is the role you expect in software industry?
How can I read/write structures from/to data files?
What is a pointer and how it is initialized?
define string ?
What is the data segment that is followed by c?
How main function is called in c?
What is structure packing in c?
which is an algorithm for sorting in a growing Lexicographic order
What does *p++ do? What does it point to?
What are conditional operators in C?
What is the difference between int main and void main in c?
What is the difference between union and anonymous union?
Explain output of printf("Hello World"-'A'+'B'); ?