MCQs > IT & Programming > C++ > Which choice is a reason to specify the type of a pointer instead of using void *, which works as a pointer ro any type?

C++ MCQs

Which choice is a reason to specify the type of a pointer instead of using void *, which works as a pointer ro any type?

Answer

Correct Answer: The compiler needs the data type to know how much memory to allocate for the pointer, because different data types require different pointer lengths.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

C++ Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it