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 best c c++ compiler for windows?
Which one is better- macro or function?
What are static and dynamic type checking?
What is the type of 'this' pointer? When does it get created?
Is oops and c++ same?
List the issue that the auto_ptr object handles?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Do class declarations end with a semicolon? Do class method definitions?
What is the error in the code below and how should it be corrected?
In which situation the program terminates before reaching the breakpoint set by the user at the beginning of the mainq method?
What is time h in c++?
Is eclipse good for c++?
Where do I find the current c or c++ standard documents?
What size is allocated to the union variable?
What is a null object in c++?