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 is the two main roles of operating system?

508


What are the advantages of using const reference arguments in a function?

608


What is enum class in c++?

702


Explain some examples of operator overloading?

641


What causes a runtime error c++?

577






What is a dangling pointer in c++?

652


What is const pointer and const reference?

587


What is long in c++?

731


Explain shallow copy?

610


What is class in c++ with example?

564


Can you overload the operator+ for short integers?

592


What is abstraction in c++?

674


Why do we use string in c++?

507


What does it mean to declare a member variable as static?

608


What is a flag in c++?

603