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
Where must the declaration of a friend function appear?
Is swift faster than c++?
Why is "using namespace std;" considered bad practice?
What is algorithm in c++ programming?
What is c++ library?
What are friend functions in C++?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Describe protected access specifiers?
What is the return value of the insertion operator?
Can you please explain the difference between using macro and inline functions?
Describe linkages and types of linkages?
Explain the difference between realloc() and free() in c++?
Write a program to show polymorphism in C++?
What is the difference between a type-specific template friend class and a general template friend class?
What is prototype for that c string function?