|
course.wilkes.edu/CS125Labs |
||||
Experiment 8: auto Scope, Part II
The Question: What happens if we declare a name in a block, and then redeclare that name in a block nested within that block?
Hypothesis: Review the rules of scope, and then construct a hypothesis.
int main()
{
int arg1;
arg1 = -1;
...
{
char arg1 = 'A';
}
}
Observation: Translate your source program. What is displayed ?
|
Home Membership
|
|||
|
Last update: Wednesday, August 23, 2000 at 3:25:37 PM. |
||||