What is dynamic initialization of objects in c++?
Please explain with an simple example...
Initialization of a variable at the run time from the keyboard is known as Dynamic Initialization.
Program code:-
int a=cube(n);
In the above program code , a is a global variable to which a number n is dynamically assigned through a function cube, where cube() performs the cube of a number.
This is an example of Dynamic Initialization.