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