Multiple choice technology programming languages

After we free an allocated memory block using free(), the pointer will become:

  1. null pointer

  2. wild pointer

  3. Dangling pointer

  4. None of the above

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Calling free() deallocates the memory block but does not modify the pointer itself. The pointer continues pointing to the deallocated memory, making it a dangling pointer. A null pointer must be explicitly assigned, and a wild pointer is one that is uninitialized.