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 11:30
Communication is the exchange of information. true false
Answers: 2
question
Computers and Technology, 22.06.2019 22:00
Competent nonverbal communication involves interacting with others in a manner that is appropriate for which of the following? select all that apply. situation task individuals
Answers: 3
question
Computers and Technology, 23.06.2019 22:50
What is an rss reader used for? for creating a user account on a social new site
Answers: 2
question
Computers and Technology, 24.06.2019 01:30
Hazel has just finished adding pictures to her holiday newsletter. she decides to crop an image. what is cropping an image?
Answers: 1
You know the right answer?
For the following questions assume the variable declarations and initial memory layout shown below:...
Questions
question
Mathematics, 25.02.2021 18:20
question
Mathematics, 25.02.2021 18:20
question
Mathematics, 25.02.2021 18:20
question
Mathematics, 25.02.2021 18:30
Questions on the website: 13722362