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
How can you quickly find the number of elements stored in a static array? Why is it difficult to store linked list in an array?
Why do we need pointers?
I want to write a C++ language program that: 1. Reads in the size of a square from the screen; 2. Prints a hollow square of that size out of “-“, “|” and blanks on screen; 3. Prints the same hollow square onto a text file. The program should work for squares of all side sizes between 1 and 20.
How do I tokenize a string in c++?
Why is swift so fast?
When should we use multiple inheritance?
What is an accessor in c++?
Write some differences between an external iterator and an internal iterator?
What information can an exception contain?
What are the advantages of using a pointer?
Is dev c++ free?
What is the meaning of c++?
How can we read/write Structures from/to data files?
How to tokenize a string in c++?
What is the difference between #import and #include?