Question: A pointer to void named vptr, has been set to point to a floating point variable named g. What is the valid way to dereference vptr to assign its pointed value to a float variable named f later in this program?

  1. f = _(float _)vptr;
  2. f = (float \*)vptr;
  3. f = \*(float \*)vptr;
  4. f = \*(float)vptr;

Answer: The correct answer of the above question is Option C:f = \*(float \*)vptr;