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 |
List different attributes in C++?
Can notepad ++ run c++?
Why do we use the using declaration?
What is meaning of in c++?
What is a singleton class c++?
Which bit wise operator is suitable for putting on a particular bit in a number?
What is a volatile variable in c++?
what is scupper?
What is difference between n and endl in c++?
What does namespace mean in c++?
what do you mean by memory management operators
What is Memory Alignment?