Memory as a Programming Concept in C and C++

2.1 In a C/C++ program, can you define a global variable that is not accessible by a certain function?

2.2 Can a global variable in a C/C++ program be located in the static data section of the object module of the program? Can it be located in the dynamic section of the load module?

2.3 What is the difference between logical address and physical address?

2.4 What is the difference between object module and load module?

2.5 What does "address space" refer to?

2.6 What is the system stack for?

2.7 Why does the load module have no dynamic data section even though the address space does?

2.8 The statements of a C/C++ program are translated by the compiler to machine instructions. Where are these instructions stored?

2.9 Is there any difference between linking and relocation? If so, describe it.

Категории