Given I loop the execution of function Foo multiple times:
int Foo(int a)
{
int b = 5;
return a * b;
}
I believe the variable "b" is gets initialized many times (as many times as I initialize function Foo). Assuming I don't want to move "b" outside of the function Foo, do I have to free up the memory claimed by subsequent "b" initializations, or is it done automatically?