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


Please Help Members By Posting Answers For Below Questions

Why do we need constructors in c++?

851


What is null pointer and void pointer and what is their use?

833


List the advantages of inheritance.

881


Write a note about the virtual member function?

805


What is the use of cmath in c++?

792


How would you use the functions randomize() and random()?

841


How does class accomplish data hiding in c++?

919


Explain stack unwinding.

843


What do you mean by ‘void’ return type?

840


What is the size of a vector?

809


Is c++ a dying language?

806


What is difference between class and structure in c++?

870


What is the difference between method overloading and method overriding in c++?

792


Explain what is polymorphism in c++?

866


What character terminates all character array strings a) b) . c) END

974