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

How do I run a program in notepad ++?

835


How a modifier is similar to mutator?

906


What is insertion sorting?

878


What are activex and ole?

795


How does atoi function work?

894


What is private public protected in c++?

768


Explain deep copy and a shallow copy?

822


In int main(int argc, char *argv[]) what is argv[0] a) The first argument passed into the program b) The program name c) You can't define main like that

865


What is the c++ programming language used for?

783


Define virtual constructor.

829


What is the this pointer?

844


Which is the best c++ software?

846


Write about the use of the virtual destructor?

815


Can the operator == be overloaded for comparing two arrays consisting of characters by using string comparison?

820


Can I learn c++ without c?

907