Question: 1 Problem _ Pointers Given the following correct program in C, 1. give the correct type definitions for pointer variables ra, rb, rc, raa, rbb,

 1 Problem _ Pointers Given the following correct program in C,

1 Problem _ Pointers Given the following correct program in C, 1. give the correct type definitions for pointer variables ra, rb, rc, raa, rbb, and rcc. 2. draw a picture that shows all of the variables and their contents similar to the picture as shown, for example, in lecture 12, page 8. Also indicate whether the object lives on the stack or on the heap. Your picture should show the variables and their values just before the first print statement (*) 3. show the output from this program 4. write a statement involving a pointer expression using the variables in this program which is ILLEGAL given your declared types. int main() fint a, b, c; a=3; b = 2; c = 1; rb = &b; rc = &c; rcc = raa ; rbb = &rc; rb = &c; printf ("%d %d %d " ,a,b,c); printf ("%d %d ",*ra , *rb); printf ("%d %d %d " ,**raa , *bb,**rcc)

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!