Question: Given the following correct- program in C, give the correct type definitions for pointer variables ra, rb, rc, raa, rbb, and rcc. draw a picture:

 Given the following correct- program in C, give the correct type

Given the following correct- program in C, give the correct type definitions for pointer variables ra, rb, rc, raa, rbb, and rcc. draw a picture: that, shows all of the variables and their contents similar to the picture as shown in lecture 11. Your picture should show the variables; and their values just before the first print statement (*). show the output from this program. write a statement involving a pointer expression using the variables in this program which is ILLEGAL given your declared types. main() {int a, b, c; ??? ra; ??? rb; ??? rc; ??? raa; ??? rbb; ??? rcc; a = 3; b = 2; c = 1; ra = &a; rb = &b; rc = &c; ra = rb; raa = &rb; rc = *raa; rcc = raa; rc = &a; rbb = &rc; rb = &c; *ra = 4; *rb = *ra + 4;/* (*) */printf ("%d %d %d ", a, b, c); printf("%d %d ", *ra, *rb); printf("%d %d %d ", **raa, **rbb, **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!