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
Here is a neat trick for checking whether two strings are equal
How can I manipulate individual bits?
What is data structure in c programming?
What is floating point constants?
Is register a keyword in c?
What is sizeof return in c?
What are the 32 keywords in c?
What is the use of void pointer and null pointer in c language?
What is the symbol indicated the c-preprocessor?
Why main is not a keyword in c?
What are the types of arrays in c?
Explain what is a static function?
When can you use a pointer with a function?
What is #include conio h?
Explain how many levels deep can include files be nested?