Practice mode C Language

Which storage class keyword makes a local variable keep its value between function calls?

Correct answer A. static

Explanation

A static local variable is initialised only once and keeps its value for the whole run of the program, so it remembers its value between calls.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

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

Links and website addresses are not allowed in comments.