C Programming - Functions - Discussion


Maximum number of arguments that a function can take is 12

[A]. Yes
[B]. No

Answer: Option B


No, C can accept upto 127 maximum number of arguments in a function.

Muthu said: (Jan 29, 2012)  
Can anyone explain why function takes only 127 arguments?

Sekhar said: (Sep 21, 2013)  
It is because the no.of bits is 0-7. Therefore

pow(2,7) - 1 = 127.

Guru said: (Jul 2, 2016)  
Why c take 1byte range arguments only?

Naveen said: (Aug 25, 2016)  

If the number of bits is 7 then why we should we take pow (2, 7)?

Pradip Arpit said: (Feb 25, 2017)  
Because in 0-7 means 8bit.

So 8bit = 1byte the maximum possible opertion are 2pow'num' in case 2uppon7 pow (2, 7) =127.

Venkat said: (Mar 2, 2018)  
Neither the C nor C++ standard places an absolute requirement on the number of arguments/parameters you must be able to pass when calling a function, but the C standard suggests that an implementation should support at least 127 parameters/arguments, and the C++ standard suggests that it should support at least 256 parameters/arguments.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.