any other method by which i can pass variable no. of arguments to a function :)
Santi1986
0
Newbie Poster
Recommended Answers
Jump to PostPass an array.
Jump to PostI 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
Narue
5,707
Bad Cop
Team Colleague
N1GHTS
102
Posting Whiz in Training
Santi1986
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
Narue
5,707
Bad Cop
Team Colleague
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.