C++ Containers Question:

Download Job Interview Questions and Answers PDF

What are static automatic variables?

C++ Containers Interview Question
C++ Containers Interview Question

Answer:

The static automatic variables, as with local variables, are accessible only within the function in which it is defined. Static automatic variables exist until the program ends in the same manner as external variables. In order to maintain value between function calls, the static variable takes its presence.

Download C++ Containers Interview Questions And Answers PDF

Previous QuestionNext Question
What are External variable?What is a container class? What are the types of container classes?