The keyword ________ is used to declare a variable that retains its value between successive calls to the functions in which it is declared.

  • auto
  • extern
  • register
  • static
In C, the static keyword is used to declare a variable that retains its value between successive calls to the functions in which it is declared. This keyword is used to create a local variable with a persistent value, maintaining its state across function calls.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *