Computers and Technology
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.

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 01:30, chastineondre7979
How will you cite information that is common knowledge in your research paper?
Answers: 1
image
Computers and Technology, 22.06.2019 16:50, Tyrant4life
Consider a slotted aloha system, where the time slot equals the fixed duration of each packet. assume that there are 4 stations a, b,c, d sharing the medium. (a) stations a, b,c, d receive one packet each from higher layers at times 1.3, 1.5, 2.6,5.7 respectively. show which transmissions take place when, according to the slottedaloha protocol; describe all transmissions until all four packets have been successful. when needed, each station has access to the following sequence of random number, provided by a random number generator and drawn uniformly between 0 and 1: (1) station a draws numbers: 0.31, 0.27, 0.78, 0.9, 0.9, 0.11, 0. (2) station b draws numbers: 0.45, 0.28, 0.11, 0.83, 0.37, 0.22, 0. (3)station c draws numbers: 0.1, 0.2, 0.3, 0.4, 0. (4) station d draws numbers: 0.36, 0.77, 0.9, 0.1, 0.1, 0.1, 0.1, 0. (b) in slotted aloha, a station transmits in each time slot with a given probability. what probabilities would you assign to each of the four stations so as to: (i) maximize the efficiency of the protocol? (ii) maximize fairness among the four stations? (c) will the efficiency increase or decrease if we modify slotted aloha as follows: (i) get rid of slots and allow stations to transmit immediately? (ii) implement carrier sensing? (iii) implement collision detection? (iv) implement collision avoidance?
Answers: 3
image
Computers and Technology, 22.06.2019 18:30, Akkenson17871
The "instance" relationship shows that something is an object of a
Answers: 1
image
Computers and Technology, 23.06.2019 07:10, anika420
If you want to import a picture into a dtp application, what must you do first? draw an image frame. import text. open the folder containing the file. select get image… from the windows menu.
Answers: 2
Do you know the correct answer?
For each of the following descriptions of something stored in memory when a program that was coded i...

Questions in other subjects: