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 |
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
How to Throw some light on the splay trees?
Write a program to check whether a number is prime or not using c?
What is c mainly used for?
What is dangling pointer in c?
write a program to swap two variables a=5 , b= 10 without using third variable
A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?
what is printf
One of the Institutes contains 5 student groups. Every group contains 4 students. Institute wants to store student group’s details in array. Group should contain group member’s details (name and registration number and age), project name, and mark of the group.
what is the maximum no. of bytes calloc can allocate
How can you find the day of the week given the date?
what is the maximum limit of row and column of a matrix in c programming. in linux .