Question: the language is in CCS C, C will work fine. below is my code for program_pointer_1 #include #include #include #include void main(void) { int test1

 the language is in CCS C, C will work fine. below

the language is in CCS C, C will work fine. below is my code for program_pointer_1

#include #include #include #include void main(void) { int test1 = 10; float test2 = 3.14159; char test3[] = "This is a character array"; int *ptr1; float *ptr2; char*ptr3; ptr1 = &test1; printf("The integer value is stored at => prt1 %x ",ptr1); ptr2 = &test2; printf("The float value is stored at => prt2 %x ",ptr2); ptr3 = &test3; printf("The character array value is stored at => prt3 %x ",ptr3); }

Modify program_pointer_1 to print the values of testi, test2, and test3 thru the pointers instead of the normal variables

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!