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
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
What are the types of bitwise operator?
Can stdout be forced to print somewhere other than the screen?
How do you redirect a standard stream?
What is %d used for?
What is a pointer and how it is initialized?
C program to find all possible outcomes of a dice?
If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..
How is a structure member accessed?
How main function is called in c?
Why is C language being considered a middle level language?
What do you mean by invalid pointer arithmetic?
Why should I prototype a function?
What is indirection?
What is #include conio h?