Question: 7.2 lmplementation define an integer age which is initialized to 10, define another integer age2 which is initialized to 100; define an integer pointerptr that

 7.2 lmplementation define an integer age which is initialized to 10,

7.2 lmplementation define an integer age which is initialized to 10, define another integer age2 which is initialized to 100; define an integer pointerptr that points to age display the value of age, both via age, and via pointer ptr use ptr to change the value of age to 14; display the value of age, both via age, and via pointer ptr e ptr |age * define another pointer ptr2, which points to age2 copy/assign age's value to age2 via pointer ptr and ptr2; o display the value of age2, both via age2, and via pointer ptr2 ptr age * let prt2 points to age by getting the address of age from the first pointerptr. use ptr2 to decrease the value of age by 1. . display value of age, both from age, and via ptr and ptr2. ptr2 age2 finally, display the address of age, using printf("%p %p %pin", age ,ptr,ptr2); 7.3 Sample Inputs/Outputs: red 305 a. out age: 10 10 age: 14 14 age2:14 14 age: 13 13 13 0x7ffd04a 92bcc 0x7ffd04a 92bcc 0x7ffd0 4a 92bcc red 306 You will get different numbers but they should be identical to each other. This is the memory address of variable age, in Hex. 7.4 Submission: Name your program lab4F.c and submit using

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!