Question: 1. Both declarations below create integer pointers. What reason did I give for preferring the second approach over the hrst one? What reason do some

 1. Both declarations below create integer pointers. What reason did I

1. Both declarations below create integer pointers. What reason did I give for preferring the second approach over the hrst one? What reason do some people give for preferring the first approach? ntp nt 2. Given the following code, what are some reasonable possibilities we could use to fill in the blank? int " 1e88); nt p 81 3. In the following chunk of code, if we want to execute the line y-&x, what should be the data type for y? cosble -3.14 4. (Synthesis) Push the limits of your pointer knowledge and synthesize new information by reasoning through this question: In the following code, if we want z to hold the address of p, what should its data type be? (Hint: It's not int z.) nt 1-56 5. Are the following ines of code valid, or is the assignment on line 3 problematic since p has not vet been initialized? int P 6. (Synthesis) Synthesize new knowledge: Given the following lines of code, how do you think you can use q to change the value stored in i? Write, compile, and execute a program to verify that your answer is corrett int 7. (Synthesis) Use pointers to write a swapi) function that takes the addresses af two variables and then swaps their values. By passing addresses to a function, you can use them to modify variables you created back in main! Here's the functional prototype as well as main include catdia.h //NetCQ that L'ahlving the dresses of E and j ta tha // swo nction. Therefore, swop() wd11 be one to NoH vorify that our sap functlon vorked

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!