An automatic variable, also known as a local variable, is a variable that is created when a function is called and destroyed when the function exits. These variables are typically declared within a function and are not accessible outside of that function. The memory for automatic variables is allocated on the stack, and they have a limited lifetime that corresponds to the duration of the function's execution.
New to topics? Read the docs here!