any other method by which i can pass variable no. of arguments to a function :)
Jump to Post
I usually create a structure (with malloc'd arrays if required) and either define the function with that typedef or as a void pointer.
Void pointers are a powerful way to pass literally anything to a function, but usually in those cases you need to also pass some enum or …
All 5 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.