M
Master
what is the maximum no. of arguments a function can take?
urgent
thanks ..
urgent
thanks ..
Master said:what is the maximum no. of arguments a function can take?
urgent
Victor Bazarov said:The Standard requires at least 256.
Mike said:To "Master":
But if you find you need more than a maximum of perhaps
ten arguments (my personal threshold is more like six
or seven), imo you should consider refactoring your code
to use more functions with 'smaller' signatures. Keep
It Readable.
Victor Bazarov said:If the OP is working on some kind of automated source code
generator, the resulting code doesn't have to be readable by
anything (or anybody) except a compiler.
Mike said:Which is why it's a good idea to give some context when asking
such 'high level' questions, which OP did not do.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.