How to declare automatic variable in static functions and static variable in automatic functions?

@dave can you please explain this?