What is difference between initialization and assignment?
Answers were Sorted based on User's Feedback
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 |
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 |
What is a static member?
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
Why should you learn c++?
Why is c++ is better than c?
What is the purpose of the noexcept keyword?
In which memory a class gets stored(in heap /in stack)? And why??
When we use Abstract Class and when we use Interface?where we will implement in real time?
What are the uses of pointers?
What is c++ mutable?
What is #include iostream?
What is "strstream" ?
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)