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

Is c++ a software?

931


What is friend class in c++ with example?

690


What is a v-table?

891


Evaulate: 22%5 a) 2 b) 4 c) 0

868


How a modifier is similar to mutator?

879


How would you use the functions sin(), pow(), sqrt()?

941


What is setw manipulator in c++?

811


What is the main purpose of c++?

799


Is c++ used anymore?

837


What is an operator in c++?

805


What is meant by iomanip in c++?

853


What is the full form of c++?

909


How are Structure passing and returning implemented by the compiler?

851


What's the best free c++ profiler for windows?

834


What is flush () in c++?

817