mikroC
making it simple...
Visibility
The visibility of an identifier is that region of the program source code from which
legal access can be made to the identifier's associated object.
Scope and visibility usually coincide, though there are circumstances under which
an object becomes temporarily hidden by the appearance of a duplicate identifier:
the object still exists but the original identifier cannot be used to access it until the
scope of the duplicate identifier is ended.
Technically, visibility cannot exceed scope, but scope can exceed visibility. Take a
look at the following example:
void f (int i) {
int j;
j = 3;
j += 1;
}
// i and j are both out of scope
MikroElektronika: Development tools - Books - Compilers
// auto by default
// int i and j are in scope and visible
// nested block
{
double j;
// j is local name in the nested block
// i and double j are visible;
j = 0.1;
// int j = 3 in scope but hidden
}
// double j out of scope
// int j visible and = 4
mikroC - C Compiler for Microchip PIC microcontrollers
page
55
Need help?
Do you have a question about the PIC Microcontrollers PIC12 and is the answer not in the manual?