Question: Explain the logistics of this program and what the CODE does? Also a way to make this code better in any way and how. 1

Explain the logistics of this program and what the CODE does? Also a way to make this code better in any way and how.

1 #include 2 #include 3 int *a, *b, *c; 4 int main() 5 { 6 a = (int *)malloc(sizeof(int)); 7 *a = 5; 8 b = (int *)malloc(sizeof(int)); 9 *b = 3; 10 c = a; 11 a = b; 12 *a = 2 + *c; 13 printf("*a = %d ", *a); 14 printf("*b = %d ", *b); 15 printf("*c = %d ", *c); 16 return 0; 17 }

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!