what is diff between localstatic and globalstatis variable
possible 2 use in another file...?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / guest
localstatic belong to that only that function .
globalestatic belong 2whole file. not possible.
| Is This Answer Correct ? | 6 Yes | 1 No |
Differentiate between calloc and malloc.
how to find the size of the data type like int,float without using the sizeof operator?
any function have arguments one or more OR not . it is compulsary a) any function compulsary have one or more arguments b) any function did not have arguments. It is not compulsary c) it is optional it is not compulsary d) none of the above
What is a structure in c language. how to initialise a structure in c?
What is function prototype in c with example?
wite a programme in c to linear search a data using flag and without using flags?
what is the c source code for the below output? 1 0 1 1 0 1 0 1 0 1 1 0 1 0 1
What are the advantages of the functions?
how logic is used
pgm to reverse string using arrays i.e god is love becomes love is god) (assumption:only space is used for seperation of words) no addtional memory used.i.e no temporary arrays can used.
What is void main () in c?
Where are local variables stored in c?