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
Which operator cannot overload?
What is the full name of logo?
How does java differ from c and c++?
What do you mean by public protected and private in c++?
What is class syntax c++?
What is cin clear () in c++?
What is format for defining a structure?
What is setf in c++?
Can you be able to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?
What is wrapper class in c++?
What are the rules for naming an identifier?
What is enum class in c++?
What is scope operator in c++?
Can we distribute function templates and class templates in object libraries?
How can virtual functions in c++ be implemented?