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 |
How do you initialize a class member, class x { const int i; };
How to implement flags?
Explain what you mean by a pointer.
What is difference between rand () and srand ()?
How can you specify a class in C++?
Write a program to get the value of sin (x) using a library function , when x is given in degrees.
write a C++ programming :if the no is between 32 to 50 it will be odd.
Which programming language's unsatisfactory performance led to the discovery of c++?
What is c++ iterator?
What is the difference between method and message?
Problem 6: Area of a trapezoid can be calculated by the following formula: A=(b1 b2)×h2 where b1 and b2 are the parallel sides or the bases and h is length of height Write a C code of this program
When to use “const” reference arguments in a function?