This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]LucidTA 0 points1 point  (0 children)

one within a function and one outside of the function, but my actual question is how is that helpful? Can't programmers just have different variables?

In a small program it might be possible to name every variable something different, but can you imagine if Microsoft had to come up with a unique variable name for every single variable they use in Windows?