Another alternative to a void pointer is a union. Typically you would also want an enumerated type to indicate the actual type stored in the union.
On Mar 16, 9:57 am, himanshu kansal <[email protected]> wrote: > can nodes of linked list in c/c++ contain different types of > data....means suppose 1st node of the list contains an integer value, > 2nd contains a float,3rd has a string and so on...... -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
