What is meant by global static? why we have to use static
variable instead of Global variable
Answer Posted / abdur rab
Static remains throughout the program, however its scope is
limited to that file alone. If a program consists of
multiple files, you want a variable to be seen by the
entire file and do not want that variable to be seen by the
other files, then mark is as static
static int a;
as a global variable
Is This Answer Correct ? | 2 Yes | 3 No |
Post New Answer View All Answers
What is page thrashing?
What are nested functions in c?
What is static and auto variables in c?
What does double pointer mean in c?
Explain modulus operator.
How can I access an I o board directly?
What is typedef struct in c?
What is .obj file in c?
What is the code in while loop that returns the output of given code?
What are the different types of data structures in c?
What is line in c preprocessor?
What is selection sort in c?
What are the types of arrays in c?
What is the use of printf() and scanf() functions?
How do you determine whether to use a stream function or a low-level function?