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 the function of this pointer?
Does c have enums?
What are linker error?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Tell me with an example the self-referential structure?
Can we access array using pointer in c language?
Is a house a mass structure?
largest Of three Number using without if condition?
Do you have any idea about the use of "auto" keyword?
What does the format %10.2 mean when included in a printf statement?
What is the general form of #line preprocessor?
What are the types of functions in c?
What is assignment operator?
What is getch () for?
What is c programming structure?