What is the difference between block scope and function scope in c++? At the end of these scopes, stack variables are unaccessable, but what about pointers