subject

For the following questions assume the variable declarations and initial memory layout shown below: Identifier Address
a 6AFDF4
b 6AFDF0
ptr 6AFDEC
qtr 6AFDE8

int a = 40;
int b = 8;
int *ptr, *qtr;

//Suppose the following statements are executed:
ptr = &a; // statement 1
qtr = &b; // statement 2
*ptr = *qtr; // statement 3
qtr = ptr; // statement 4

Considering these statements answer the following questions

A. Immediately after the execution of statement 1, what is ptr ?

B. Immediately after the execution of statement 2, what is *qtr ?

C. Immediately after the execution of statement 2, what is &qtr ?

D. Immediately after the execution of statement 3, what is ptr ?

E. Immediately after the execution of statement 3, what is *ptr ?

F. Immediately after the execution of statement 4, what is *qtr ?

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 20:00
How is the number 372 written when expanded out to place values in the base 8 (octal) number system? a. 2 x 4 + 3 x 2 + 4 x 1 b. 3 x 64 + 7 x 8 + 2 x 1 c. 3 x 8 + 7 x 7 + 2 x 6 d. 3 x 100 + 7 x 10 + 2 x 1
Answers: 1
question
Computers and Technology, 24.06.2019 10:00
When writing a business letter, how many times can you use the same merge field in a document? once once, unless using the address block feature unlimited it will depend on the type of document you choose
Answers: 1
question
Computers and Technology, 25.06.2019 02:30
What does a trademark indicate about a product? a trademark is a sign, symbol, or short phrase that indicates the of a product or service. type the correct answer in the box
Answers: 1
question
Computers and Technology, 25.06.2019 05:00
Carmina works at a fast-food restaurant. during the slow afternoon hours, carmina always find projects to keep her busy, like washing all the trays or deep-cleaning the drive-thru area. what workplace habit does carmina show by doing this? efficiency initiative interpersonal skills problem solving
Answers: 1
You know the right answer?
For the following questions assume the variable declarations and initial memory layout shown below:...
Questions
Questions on the website: 13722365