Can you give some comparison between the following two code snippets: one using local static variable within a function, another using global (not necessarily real global, but p