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 |
Will a C compiler always compile C++ code a) Yes b) No c) Only optimized compilers
What are keywords in c++?
Explain selection sorting?
What are c++ templates used for?
Which programming language should I learn first?
Why the usage of pointers in C++ is not recommended ?
What are pointers used for c++?
What is c++ flowchart?
How much maximum can you allocate in a single call to malloc()?
Can a class be static in c++?
How to declare a pointer to an array of integers?
What is cin clear () in c++?