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 is long in c++?
Explain how overloading takes place in c++?
Why is "using namespace std;" considered bad practice?
Is c++ a software?
Which ide is best for c++?
How do you initialize a string in c++?
How do I download c++?
What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard
What is virtual destructors? Why they are used?
Do class method definitions?
What is the basic structure of c++ program?
What are the uses of typedef in a program?