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?
- f=(float \*)vptr;
- f=\*(float \*)vptr;
- f=\*(float)vptr;
- f=(float)\*vptr;
Answer: The correct answer of the above question is Option B:f=\*(float \*)vptr;