Explore BrainMass
Share

Uses of Local Scope

This content was STOLEN from BrainMass.com - View the original, and get the solution, here!

Write a method that illustrates the use of local scope.

© BrainMass Inc. brainmass.com September 22, 2018, 8:56 am ad1c9bdddf - https://brainmass.com/computer-science/programming-languages/uses-local-scope-177302

Solution Preview

Please see the following code:

int add(int y) {
int x = 10;
x = x + y;
...

Solution Summary

This response defines the concept of local scope.

$2.19