What is difference between initialization and assignment?
Answers were Sorted based on User's Feedback
Answer / rahul rasal
Simple Word In my Word..
Initilize:
E.g:
int i;
Assign:
E.g:
int i=30;
Is it Right...?
| Is This Answer Correct ? | 3 Yes | 8 No |
Answer / shweta iyer
In initialization, we provide the variable with some initial values which can be changed later. But in assignment, we provide the variable with a fixed value which remains same throughout the whole program.
| Is This Answer Correct ? | 8 Yes | 14 No |
What are the advantages of using friend classes?
What do you mean by delegate? Can a user retain delegates?
How to stop conversions among objects?
What is the function of I/O library in C++ ?
When should we use multiple inheritance?
What are the static members and static member functions?
What is the difference between equal to (==) and assignment operator (=)?
Is c++ platform dependent?
Why do we need function?
Can create new c++ operators?
Define a pointer to a data member of the type pointer to pointer?
What does ios :: app do in c++?