If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: what is visibility and scope

'scope' usually refers to the lifetime of a variable (the time between it getting created and destroyed). 'visibility' refers to whether or not it's accessible. However, it's not quite as simple as that because local variables can hide variables of the same name that were previously visible and in scope. For example:-