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 the different bitween abap and abap-hr?
main use of recursive function a) processing speed high b) reduce program length/reduce repeated statements c) if you do not, use iterative methods like, for, while or do-while d) all the above
What is the benefit of using #define to declare a constant?
a) Identify the following declarations. Ex. int i (integer variable) float a[l0](array of 10 real nos) int (*f())() void *f int (*f()) [] void *f int f[] [] [] char *(*f) () int (*f[]) [] float(*f) [] [] float **f int ******f
What is function what are the types of function?
What is data types?
What are comments and how do you insert it in a C program?
please can any one suggest me best useful video tutorials on c i am science graduate.please help me.u can email me to sas29@in.com
What is the difference between array and pointer in c?
Why is this loop always executing once?
How can I read/write structures from/to data files?
What are the 5 organizational structures?
how to find binary of number?
What are the disadvantages of c language?
How can a program be made to print the name of a source file where an error occurs?