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 |
what are the uses of structure?
Is it better to bitshift a value than to multiply by 2?
Do you know the difference between malloc() and calloc() function?
stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.
write a program to sort the elements in a given array in c language
write a program to display the numbers having digit 9 in the given range from 1 to 100
What is the output of the following program main();{printf ("chennai""superkings"}; a. Chennai b. superkings c. error d. Chennai superkings
What are the 3 types of structures?
How is a null pointer different from a dangling pointer?
what is the value of 'i'? i=strlen("Blue")+strlen("People")/strlen("Red")-strlen("green")
7 Answers Cadence, JNTU, Zen Technologies,
What’s the special use of UNIONS?
how does a general function , that accepts an array as a parameter, "knows" the size of the array ? How should it define it parameters list ?