What is difference between initialization and assignment?

Answers were Sorted based on User's Feedback



What is difference between initialization and assignment?..

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

What is difference between initialization and assignment?..

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

Post New Answer

More C++ General Interview Questions

What is long in c++?

0 Answers  


Explain how overloading takes place in c++?

0 Answers  


Why is "using namespace std;" considered bad practice?

0 Answers  


Is c++ a software?

0 Answers  


Which ide is best for c++?

0 Answers  






How do you initialize a string in c++?

0 Answers  


How do I download c++?

0 Answers  


What ANSI C++ function clears the screen a) clrscr() b) clear() c) Its not defined by the ANSI C++ standard

0 Answers  


What is virtual destructors? Why they are used?

1 Answers  


Do class method definitions?

0 Answers  


What is the basic structure of c++ program?

0 Answers  


What are the uses of typedef in a program?

0 Answers  


Categories