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 the difference between method overloading and method overriding in c++?
What is the basic structure of c++ program?
Evaulate: 22%5 a) 2 b) 4 c) 0
what is software cycle? What is a mission critical system ? What is the important aspect of a real-time system ? Explain the difference between microkernel and macro kernel. Give an example of microkernel.Why paging is used ? Which is the best page replacement algo and Why ? What is software life cycle ? How much time is spent usually in each phases and why Which one do U want to work if selected in Honeywell ? Which are the different types of testing ? What is a distributed system ? Some questions about CSP. Which languages do U know ? What are the differences between Pascal and C. questions from Compiler construction and Lisp. Which are the different computer architecture? What is the requirement in MIMD ? What is the difference between RISC and CISC processors ? Difference between loosely coupled and tightly coupled systems ? What is an open system?
Do class method definitions?
Do the parentheses after the type name make a difference with new?
What is a multiset c++?
State the difference between delete and delete[].
When do we run a shell in the unix system?
Write a program to find the Fibonacci series recursively.
Is string an object in c++?
How do we implement inheritance in c++?
What are register variables?
What is type of 'this' pointer?
How does a C++ structure differ from a C++ class?