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 a static member?

0 Answers  


What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

0 Answers  


Why should you learn c++?

0 Answers  


Why is c++ is better than c?

0 Answers  


What is the purpose of the noexcept keyword?

1 Answers  


In which memory a class gets stored(in heap /in stack)? And why??

2 Answers  


When we use Abstract Class and when we use Interface?where we will implement in real time?

0 Answers  


What are the uses of pointers?

0 Answers  


What is c++ mutable?

0 Answers  


What is #include iostream?

0 Answers  


What is "strstream" ?

1 Answers   Huawei,


Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)

0 Answers  


Categories