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
Explain abstraction.
Explain the concept of memory leak?
What is the main purpose of c++?
What is abstract class in c++?
What is ostream in c++?
What is basic if statement syntax?
Differentiate between late binding and early binding. What are the advantages of early binding?
What does obj stand for?
Can notepad ++ run c++?
Can we delete this pointer in c++?
What is meant by iomanip in c++?
Why would you use pointers in c++?
What are shallow and deep copies?
Which sort does c++ use?
What is c++ and its features?