📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!

  • google app store apple app store
  • ✖

      Question

      Which storage class in C indicates that a variable's

      lifetime is throughout the program execution and its scope is local to the block it is defined in, but its value persists between function calls?
      A 'auto' Correct Answer Incorrect Answer
      B 'register' Correct Answer Incorrect Answer
      C 'static' Correct Answer Incorrect Answer
      D 'extern' Correct Answer Incorrect Answer
      E 'volatile' Correct Answer Incorrect Answer

      Solution

      Answer: C) 'static'

      Practice Next
      ask-question