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
Can we assign integer value to char in c?
Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.
What is New modifiers?
What do you mean by Recursion Function?
What is the purpose of scanf() and printf() functions?
Write a code to achieve inter processor communication (mutual exclusion implementation pseudo code)?
What is a buffer in c?
What is the difference between arrays and pointers?
What is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
What is meant by initialization and how we initialize a variable?
Do pointers store the address of value or the actual value of a variable?
How a string is stored in c?
Tell me about low level programming languages.
Which built-in library function can be used to match a patter from the string?
Which header file is essential for using strcmp function?