Tuesday 12 February 2013

Dynamic initialization of variables



Initialization of variables during run time is called dynamic initialization of variables.

Example:

int l;
cin>>l;
float avg=l/10;

The variable avg is initialized only during run time, because the value of l is available during run time only.

0 comments:

Post a Comment

Powered by Blogger.