answersLogoWhite

0


Best Answer

Instantiation is creating the instance of the variable/object . While Initialization is to provide the variable with some value.

int i; // i is an instance of an integer

i=10; //initialised with the value 10

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the difference between instantiation and initialization in C plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Explain instantiation of objects in c plus plus?

Instantiation of a class literally means creating an instance of a class. This is the process of allocating memory for an object that you can use in your program.


Initialization of variables in namespace in C plus plus?

Is an important thing to do.


What is the order of initialization of data in C plus plus?

The general order of initialization is:Base class objects (if present)Member data objectsConstructor function code


Instantiation of objects in c plus plus?

Objects are instantiated when statically declared or dynamically created with the new keyword.


What do you mean by initialization in c plus plus?

Not initialized variable: int myInt; Initialized variable: int myInt = 10;


What is the difference between private stafford and plus student loans?

What is the difference between private stafford and plus student loans?


How can a constructor be invoked at the time of inheritance in C Plus Plus?

It cannot. Inheritance is a compile-time operation. Constructors are invoked at runtime at the point of instantiation.


What is the difference between pointers in c and c plus plus?

Nothing.


What is the difference between be plus ing and get plus ing?

There are no such terms in C++.


What is the difference between statements in c plus plus charconstp and char constp?

There is no difference. Both statements are invalid.


What is the difference between Nike plus and Nike plus Active?

They have different names


What is the difference between plus 8 and -12?

-4