When does the void pointer can be dereferenced?

2025

When does the void pointer can be dereferenced?

Answer: B. when it cast to another type of objectAnswer: b Explanation: By casting the pointer to another data type, it can be dereferenced from the void pointer.

  1. A.

    when it doesn’t point to any value

  2. B.

    when it cast to another type of object

  3. C.

    using delete keyword

  4. D.

    using shift keyword

Attempted by 389 students.

Show answer & explanation

Correct answer: B

Answer: b

Explanation: By casting the pointer to another data type, it can be dereferenced from the void pointer.

Explore the full course: Gate Guidance By Sanchit Sir

Loading lesson…