Answer and Explanation:
Static variables are variables that still maintain their values outside the score which they are declared. They are declared with the static keyword
Example:
static int score = 30;
Local variables are variables whose scope are restricted to a block. Their values are restricted to the block which they are declared in.
Example:
void abd(){
int score;
}
score is a local variable to abcd() function