What is difference between initialization and assignment?

Answer Posted / sweety

Initialization does the memory allocation, i.e. it assigns
the emory to the variable whereas assignment assigns a
value to the variable.

Is This Answer Correct ?    15 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What gives the current position of the put pointer?

546


Is it possible to use a new for the reallocation of pointers ?

579


What is difference between malloc()/free() and new/delete?

635


Explain explicit container.

625


What are the three forms of cin.get() and what are their differences?

614






Explain deep copy and a shallow copy?

592


Can we overload operator in c++?

535


What is this pointer in c++?

708


Explain the term memory alignment?

658


What does h mean in maths?

558


Is string data type in c++?

571


What are the two types of polymorphism?

577


What does getch() do according to the ANSI C++ standard a) Reads in a character b) Checks the keyboard buffer c) Nothing in particular (Its not defined there)

588


What is public, protected, private in c++?

636


How do we implement inheritance in c++?

569