June 2024
Beginner
976 pages
16h 34m
English
Each subprogram uses its own memory space to hold the values of its variables. Even the main code has its own memory space! This means that you can have a variable named test in main code, another variable named test in a subprogram, and yet another variable named test in another subprogram. Pay attention! Those three variables are three completely different variables, in different memory locations, and they can hold completely different values.
As you can see in the program that follows, there are three variables named test in three different memory locations and each one of them holds a completely different value. The trace table below can help ...
Read now
Unlock full access