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
What is the difference between structure and class?
What sorting algorithm does c++ use?
Can a Structure contain a Pointer to itself?
What are the comments in c++?
When should overload new operator on a global basis or a class basis?
What is the difference between multiple and multilevel inheritance in c++?
How does the copy constructor differ from the assignment operator (=)?
Should I learn c or c++ first?
write a function signature with various number of parameters.
what are the decision making statements in C++? Explain if statement with an example?
What is c++ namespace?
why is c++ called oops? Explain
Define macro.
What is the difference between an external iterator and an internal iterator?
What is the best free c++ compiler for windows?