2080 12

Object Oriented Programming20805 marksStatic data members and static functions

Illustrate the use of static variable with a simple program.

Illustrate the use of static variable with a simple program. [5]

A static variable is a variable that retains its value between function calls. It is initialized only once (at the first call) and exists for the entire lifetime of the program, even though its scope may be local to a function. --- Property Description ------ Initialization Done only once Lifetim...

Up nextWhat do we need template? Why the program terminate after the occurrence of exception?Desc