what is difference between static and non-static variables
Answer Posted / achal ubbott
The above answers are correct. A local static variable is
stored in heap. But a local variable is stored onto stack.
A Global variable made static can't be accessed from a
function outside the file using extern. So it limits the
scope.
| Is This Answer Correct ? | 2 Yes | 10 No |
Post New Answer View All Answers
What is a set in c++?
What is exception handling? Does c++ support exception handling?
Can I run c program in turbo c++?
What data encapsulation is in c++?
What you know about structures in C++?
Which is better c++ or java?
Will this c++ program execute or not?
What is the use of main function in c++?
What is meant by forward referencing and when should it be used?
an operation between an integer and real always yeilds a) integer result b) real result c) float result
Does improper inheritance have a potential to wreck a project?
Is empty stack c++?
what is data encapsulation in C++?
Tell me what are static member functions?
What is the use of 'this' pointer?