When a function call completes (and control returns to the calling statement) the local variable is undefined.
After the function call is finished, the local variable can be utilized outside of the function at any time. Until the function is called again, a local variable holds onto its value.
While local variables are those that are defined inside a function and have a scope that is specific to that function only, global variables are those that are defined outside of function having global scope.
Local variables are exclusive to a given function and are produced within that function. It cannot be accessed elsewhere other than the function.
Since there are no local variables, the value from the global variables will be used; however, you must ensure that the names of the local and global variables match.
If a variable is modified or created inside of a function but isn't declared a global variable, it is considered local variable.
To learn more about local variable click here:
brainly.com/question/27840441
#SPJ4