subject
Computers and Technology, 03.04.2021 01:00 asra44

For each of the following descriptions of something stored in memory when a program that was coded in C is running. State whether the memory is part of static memory, an activation record in the stack, or the heap (i. e., dynamic memory). For those entities that are stored in an activation record, state whether the memory resides in the first, second, or third section of the activation record. For some of these parts, you may have to speculate about the most likely way that a provided class is implemented. a. A bool that is a public data member of an object that is a parameter of a constructor.
b. A char that is stored in a C++ string object containing many characters, if the string object is a parameter of a regular function.
c. A char that is stored in a C++ string object containing many characters, if the string object is a local variable of a private data member of a class.
d. An int that is a temporary variable created by the compiler that is local to a protected member function of a class.
e. The value of a register that has been backed up when a regular function has been called and will need to be restored when the function ends.

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 02:10
3. (5 points) describe what would be printed by the code below or what error would occur. const char* cstr = "0123456"; const char* ptr = & cstr[4]; cout < < ptr[-1] < < ptr < < endl; 1 4. (5 points) theseus has been trapped in a maze with a minotaur, which is trying to capture him. each round, theseus and the minotaur move through the maze; theseus towards the exit, and the minotaur towards theseus. theseus can move in any of the four cardinal directions, or he can wait for a round to see how the minotaur moves. write code that creates a data type to represent the possible moves that theseus could make.
Answers: 3
question
Computers and Technology, 22.06.2019 04:30
What kind of software users of all skill levels create web pages that include graphics, video, audio, animation, and other special effects? website authoring website software website publishing website editing
Answers: 1
question
Computers and Technology, 22.06.2019 06:30
What result from the passage of this amendment
Answers: 1
question
Computers and Technology, 22.06.2019 08:00
What is the first step in creating a maintenance ?
Answers: 2
You know the right answer?
For each of the following descriptions of something stored in memory when a program that was coded i...
Questions
question
Computers and Technology, 04.02.2021 19:00
question
Mathematics, 04.02.2021 19:00
question
Biology, 04.02.2021 19:00
question
English, 04.02.2021 19:10
Questions on the website: 13722367