A static variable has a permanent storage location throughout the program, so it retains it’s value throughout.
The static keyword used in the following show that the array in the function is at least 3 items long.
int sum_array(int a[static 3], int n) { // code }
variable