Fundamental Programming Variables & Scope Beginner
Q What are the scope and lifetime of a static local variable declared inside a C++ function?
  • A Block scope and a lifetime of one function call
  • B Block scope, but a lifetime equal to the whole program run
  • C Global scope and program lifetime
  • D File scope and a lifetime of one function call
Leave a Comment