Exercises

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.



Memory as a Programming Concept in C and C++
Memory as a Programming Concept in C and C++
ISBN: 0521520436
EAN: 2147483647
Year: 2003
Pages: 64

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net