1.

Is it possible to initialize a variable at the time of execution. What kind of initialization is this? Give an example

Answer»

Yes it is possible. This is known as Dynamic initialization. The example is given below 

eg: int a = 10, b = 5; int c = a*b; here the variable c is declared and initialized with the value 10*5.



Discussion

No Comment Found

Related InterviewSolutions