Write a c program that will malloc up space dynamically the


Write a C program that will malloc up space dynamically. The space should be able to hold exactly one integer value. After the space has been reserved, you should deposit the number 6 into the space. After the number 6 has been deposited into the space you should print the value that the space currently holds (that is, 6). You need to create a variable that contains a pointer to an int. Do not use an array index operator. Once you are done, you should free the allocated space explicitly. 

Solution Preview :

Prepared by a verified Expert
C/C++ Programming: Write a c program that will malloc up space dynamically the
Reference No:- TGS01670044

Now Priced at $10 (50% Discount)

Recommended (92%)

Rated (4.4/5)