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

What does I ++ mean in c++?

579


Can comments be nested?

619


What is searching? Explain linear and binary search.

578


What is c++ vb?

605


What is a character in c++?

559






Please explain class & object in c++?

600


By using c++ with an example describe linked list?

596


What are advantages of using friend classes?

625


Why do we learn c++?

525


How do c++ struct differs from the c++ class?

588


What is a stack? How it can be implemented?

692


When should we use multiple inheritance?

611


How will you call C functions from C ++ and vice-versa?

652


How is new() different from malloc()?

622


What is an adaptor class in c++?

596