GeeksforGeeks » Interview Questions
Interview Question for Software Engineer/Developer (Fresher) about CPuzzles
(4 posts)-
What pointer type would you use to implement heterogeneous linked list?
-
void *
-
void and for generic list also
-
Using void * is an to the problem
The other answer could the usage of union in this case. It is a much better option in case of C++ as void * has to be type casted every time it is used in ur C++ program...I hope this helps you out
Reply
You must log in to post.