What is difference between initialization and assignment?

Answer Posted / hariharan,k

initialization mean's to initilise a variable.
assignment mean's assign value to a variable.

Is This Answer Correct ?    73 Yes 41 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are pointers used for c++?

569


What is ios class in c++?

575


Would you rather wait for quicksort, linear search, or bubble sort on a 200000 element array? (Or go to lunch...) a) Quicksort b) Linear Search c) Bubble Sort

630


What is the copy-and-swap idiom?

604


Explain data encapsulation?

601






Explain the concept of friend function in c++?

601


What do you mean by function overriding & function overloading in c++?

598


Given the following seqment of code containing a group of nested if instructions: y = 9; if ((x==3) || (x == 5)) y++; else if (x == 2) y *= 2; else if (x == ) y-= 7; else y = 8; if the value of x is 4 before the nested IFs are executed, what is the value of y after the nested IFs are executed?

1580


How to access a variable of the structure?

583


Which field is used in c++?

631


Explain the advantages of using friend classes.

578


What causes a runtime error c++?

579


Is main a class in c++?

556


How can you quickly find the number of elements stored in a dynamic array?

574


What is the latest c++ standard?

675