How many arguments can be passed to a function in C?
👁 3,497 Views
📘 Detailed Answer
No previous question
No next question
💡
Answer with Explanation
Any number of arguments can be passed to a function. There is no limit on this. Function arguments are stored in stack memory rather than heap memory. Stack memory allocation is depending on the operating system.
So, any number of arguments can be passed to a function as much as stack has enough memory. Program may crash when stack overflows.