From this question I understand that in C# after the end of scope in most cases the garbage collector collects the variables.
But in C++ there is no garbage collector, yet I still can do this:
{
    int a = 0;
}
{
    int a = 10;
}
What happens with the variables in the memory at the end of the scope with C++?
 
     
     
    