what is difference between static and non-static variables

Answer Posted / arun kumar

Initialization of static variables is at compile time,
but in case of non-static variables is at run time.

Is This Answer Correct ?    6 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the full form of india?

801


Explain explicit container.

864


which operator is used for performing an exponential operation a) > b) ^ c) none

830


What is the use of object in c++?

850


You have two pairs: new() and delete() and another pair : alloc() and free(). Explain differences between eg. New() and malloc()

861


What is public, protected, private in c++?

899


Explain queue. How it can be implemented?

911


What is an incomplete type in c++?

989


What is the c++ programming language used for?

780


What is encapsulation in C++? Give an example.

844


What size is allocated to the union variable?

821


How to allocate memory dynamically for a reference?

813


What is function overriding in c++?

833


What are friend functions in C++?

838


What are the storage qualifiers?

917