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
i have to apply for the rbi for the post of officers. i need to know abt the entrance questions whether it may be aps or techinical....
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
What are the 32 keywords in c?
What is the difference between functions abs() and fabs()?
Which function in C can be used to append a string to another string?
Does c have enums?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.
What is the difference between void main and main in c?
What is the translation phases used in c language?
can any one provide me the notes of data structure for ignou cs-62 paper
What is p in text message?
What does s c mean in text?
Which is better oop or procedural?
can any one please explain, how can i access hard disk(physical address)? it is possible by the use of far,near or huge pointer? if yes then please explain......