what is the order of initialization for data?

Answer Posted / nilay

all the static memebers are created at the time of class
definition and rest all non static memebers are created
when object is created of that class. member functions are
also create in memory when class is defined. (However only
single copy of static data members and functions is created)

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by friend class & friend function in c++?

613


Should you pass exceptions by value or by reference?

687


Write about the various sections of the executable image?

566


Do class declarations end with a semicolon?

592


What is c++ and its uses?

610






What is a rooted hierarchy?

671


What is function overloading in C++?

715


Is it possible to have a recursive inline function in c++?

538


Differentiate between the manipulator and setf( ) function?

586


Explain dangling pointer.

672


Write bites in Turbo c++ Header ("Include") Files.

676


Is multimap sorted c++?

551


What's the most powerful programming language?

580


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

544


Can we specify variable field width in a scanf() format string? If possible how?

650