What is difference between initialization and assignment?
Answer Posted / sandeep mannarakkal
All object creation involves two steps,
1) Memory allocation
2) Memory initialization , so initialization is a part of object creation itself.
Assignment is the process of assigning values in to already available object.
Hope the concept is clear
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Why do we need constructors in c++?
What is null pointer and void pointer and what is their use?
List the advantages of inheritance.
Write a note about the virtual member function?
What is the use of cmath in c++?
How would you use the functions randomize() and random()?
How does class accomplish data hiding in c++?
Explain stack unwinding.
What do you mean by ‘void’ return type?
What is the size of a vector?
Is c++ a dying language?
What is difference between class and structure in c++?
What is the difference between method overloading and method overriding in c++?
Explain what is polymorphism in c++?
What character terminates all character array strings a) b) . c) END