Question: Q 1 . Assume p is a pointer to a float. Write a statement that will dynamically allocate a float variable and store its address

Q1. Assume p is a pointer to a float. Write a statement that will dynamically allocate a float variable and store its address in p. Write a statement that will free the memory allocated in the statement you wrote above. (4 points) Q2. Assume p is a pointer to a float. Then, write a statement that will dynamically allocate an array of 6000 floats and store its address in p. Write a statement that will free the memory allocated in the statement you wrote above. (4 points) Q3. What is a null pointer? (2 points)

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 Programming Questions!