What is difference between initialization and assignment?
Answer Posted / lucky
Some defference between Initialization and assignment
Initialization means whenever we initialize any var. at
declaration time.So as we initialize var. in init() in java
programming.For i.e.
prblic init()
{
int a=10;
}
Assignment means whenever we assigne any value in any var.
except const. variable.For i.e.
int a,b;
a=15; //right
b=a; //right
const c;
c=10 or c=a; //Worng
const d=20; //that is initialization
Is This Answer Correct ? | 22 Yes | 7 No |
Post New Answer View All Answers
What is scope operator in c++?
What is tellg () in c++?
What do you mean by const correctness?
Define the process of error-handling in case of constructor failure?
What is DlgProc?
Is c++ built on c?
What is binary object model?
What are the general quetions are in DEna bank manager IT/System interviews?
What is a list c++?
How should a contructor handle a failure?
What is data abstraction? How is it different from data encapsulation?
Difference between an inspector and a mutator
What is scope resolution operator in c++ with example?
What is meant by entry controlled loop?
What is an adjust field format flag?