Answer :

A static variable that is defined within a function is initialized only once, the first time it is called T.

What is a static variable in a function?

Any variable that has the word "static" in its declaration is considered to be static. The static variable's space is only allotted once, and it is used throughout the entire program. Once declared, this variable remains in effect throughout program execution.

A function-specific static variable is one that is unique to that function. That is, the variable in that function is the only one you can access.

The first time a function is invoked, a static variable created within that function is initialized just once. T. A function might have some parameters with default arguments and others without. T. The parameter data type and return data type of a function must match.

To learn more about static variables refer to:

https://brainly.com/question/14465589

#SPJ4

Other Questions