What is the maximum number of arguments that can be passed to a C function?
a) 127
b) 255
c) 512
d) No fixed limit
Answer:
d) No fixed limit
Explanation:
In C, there is no fixed limit on the number of arguments that can be passed to a function. The only practical limitation is the available stack memory and the system’s ability to handle a large number of arguments. However, passing a large number of arguments is generally not recommended, as it can lead to reduced readability and increased complexity in the code.
Understanding function argument limits helps in designing functions that are both efficient and easy to use.