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

Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers

0 Answers  


What are keywords in c++?

0 Answers  


Explain selection sorting?

0 Answers  


What are c++ templates used for?

0 Answers  


Which programming language should I learn first?

0 Answers  






Why the usage of pointers in C++ is not recommended ?

0 Answers   TCS,


What are pointers used for c++?

0 Answers  


What is c++ flowchart?

0 Answers  


How much maximum can you allocate in a single call to malloc()?

0 Answers  


Can a class be static in c++?

0 Answers  


How to declare a pointer to an array of integers?

0 Answers  


What is cin clear () in c++?

0 Answers  


Categories