Scope modifiers: Difference between revisions
Content deleted Content added
→{{header|Java}}: clarify java comments with a table |
|||
Line 77:
int code(int arg)
{
int myp; // 1) this can be seen only from inside code
static int myc; // still a variable that can be seen only from▼
//
▲ static int myc; // 3) still a variable that can be seen only from
▲ // among different code calls: it is not about
//
// among different code calls
// 4) In recursive code this variable will be the
// same in every stack frame - a significant scoping difference
}
|