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
Explain Text Manipulation Routines?
What is expression parser in c++
How long will it take to learn programming?
What is time_t c++?
We use library functions in the program, in what form they are provided to the program?
Is c++ pass by reference or value?
Why is c++ not purely object oriented?
Explain queue. How it can be implemented?
Explain data encapsulation?
Can static member variables be private?
What does catch(…) mean?
Which programming language is best to learn first?
What is auto type c++?
write a programme to get a character and thier ASCII value
What is a memory leak c++?