Question: Void pointer _vptr_ is assigned the address of float variable _g_. What is a valid way to dereference _vptr_ to assign its pointed value to a float variable named _f_ later in the 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 B:f=\*(float \*)vptr;