GeeksforGeeks » Interview Questions

Interview Question for Software Engineer/Developer (Fresher) about CPuzzles

(4 posts)

Tags:

  1. gagan
    guest
    Posted 1 year ago #

    What pointer type would you use to implement heterogeneous linked list?

  2. Ankul
    guest
    Posted 1 year ago #

    void *

  3. ashish
    guest
    Posted 1 year ago #

    void and for generic list also

  4. Vick
    Member
    Posted 1 year ago #

    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.

RSS feed for this topic