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, 21.06.2019 18:00
Kyle wants to access his school’s home page. how can he do this?
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Alcohol’s affects on the cornea and lens of the eye make it more difficult
Answers: 1
question
Computers and Technology, 24.06.2019 13:20
3. ranga ramasesh is the operations manager for a firm that is trying to decide which one of four countries it should research for possible outsourcing providers. the first step is to select a country based on cultural risk factors, which are critical to eventual business success with the provider. ranga has reviewed outsourcing provider directories and found that the four countries in the table that follows have an ample number of providers from which they can choose. to aid in the country selection step, he has enlisted the aid of a cultural expert, john wang, who has provided ratings of the various criteria in the table. the resulting ratings are on a 1 to 10 scale, where 1 is a low risk and 10 is a high risk. john has also determined six criteria weightins: trust, with a weight of 0.3; quality, with 0.2; religious, with 0.1; individualism, with 0.2; time, with 0.1; and uncertainity, with 0.1. using the factor-rating method, which country should ranga select? why? (2 points)
Answers: 3
question
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
You know the right answer?
For the following questions assume the variable declarations and initial memory layout shown below:...
Questions
question
Mathematics, 18.02.2021 20:00
question
Mathematics, 18.02.2021 20:00
question
Physics, 18.02.2021 20:00
question
Mathematics, 18.02.2021 20:00
question
Mathematics, 18.02.2021 20:00
question
Geography, 18.02.2021 20:00
Questions on the website: 13722367