how many argument we can pas in in a function
Answers were Sorted based on User's Feedback
Answer / parthipan
As much as we can. But As all the function parameters are
passed through the stack there are changes that the stack
may overflow which will cause abnormal termination.
Is This Answer Correct ? | 27 Yes | 0 No |
Answer / venu gopal raju
depending on our requirement we can pass many as arguments
to a function.
Is This Answer Correct ? | 13 Yes | 2 No |
Answer / prakash.m
any number of arguments based on our functionality
Is This Answer Correct ? | 6 Yes | 1 No |
Answer / bryan olson
The language allows any number, but a C implementation may
impose a limit. The current standard requires conforming
compilers to allow 127 parameters.
[International Standard ISO/IEC 9899:1999 Programming
Languages -- C, Section 5.2.4.1 Translation limits]
Good answers: "any number", "many", "as many as we need",
"I'd have to look that up."
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / roxin thomas
Any number of arguments can be passed to a function being
called. However, the type, order and number of the actual
and formal arguments must always be same.
Is This Answer Correct ? | 2 Yes | 0 No |
How many data structures are there in c?
how to use virual function in real time example
How do you initialize function pointers? Give an example?
difference between native and cross compilers
write a program to insert an element at the specified position in the given array in c language
the maximum width of a c variable name can be a) 6 characters b) 8 characters c) 10 characters d) 20 characters
c program to subtract between two numbers without using '-' sign and subtract function.
When should a far pointer be used?
What is the size of empty structure in c?
What is zero based addressing?
Discuss the function of conditional operator, size of operator and comma operator with examples.
Can we compile a program without main() function?