what is difference between static and non-static variables
Answer Posted / udit rawat
static variable take memory first at linking and loading time
while non static variable take memory at compile time
Is This Answer Correct ? | 35 Yes | 11 No |
Post New Answer View All Answers
What are the rules about using an underscore in a c++ identifier?
What is implicit pointer in c++?
Can a new be used in place of old mallocq? If yes, why?
Explain the difference between new() and malloc() in c++?
Can we define function inside main in c++?
Which bitwise operator is used to check whether a particular bit is on or off?
Name the operators that cannot be overloaded in C++?
What are guid? Why does com need guids?
When do we use copy constructors?
Mention the storage classes in c++.
What is static class data?
What is the difference between the indirection operator and the address of oper-ator?
How do you initialize a string in c++?
How does a C++ structure differ from a C++ class?
What are shallow and deep copies?