What are Static variables?

54. What are Static variables?

  1. Static variables are the variables that are visible in specific functions
  2. Static variables are the variables that speed up the allocation of the CPU
  3. Static variables are the variables that are defined within a function and retain their values from the previous call
  4. All the variables are static variables by default

Answer: C) Static variables are the variables that are defined within a function and retain their values from the previous call

Explanation:

Static variables are the variables that are defined within a function and retain their values from the previous call.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.