COSC450/550 Lab 2 Solved.ZIP

COSC450/550 Lab 2 Solved

Program 1:
Write a program that uses both static and a kind of dynamic scoping, and clearly show the difference in effect of the two. Explain clearly the differences between the static and the dynamic scoping.
Program 2:
Write test programs in C++ and Java to determine the scope of a variable declared in a for statement. Specifically, the code must determine whether such a variable is visible after the body of the for statement.
Powered by