For example if I have
int MyFunction(int,...);//no. of parameters is unknown
And in main()
MyFunction(1,2,3,4);
The returned value should be 4.I've tried stdarg.h but to use that you have to know the number of parameters, so it doesn't hold up for me.Thanks!