1.

Is it possible to declare a variable in between the program as and when the need arise? Then what is it?

Answer»

Yes it is possible to declare a variable in between the program as and when the need arise. It is known as dynamic initialisation. 

eg. int x = 10, y = 20;

int z = x*y;



Discussion

No Comment Found

Related InterviewSolutions