how many argument we can pas in in a function
Answers were Sorted based on User's Feedback
Answer / apurve kadawat
We can pass any no.of parameters.The upperlimit can be found
out by knowing the stack size for that function alloted by
the operating system.Therefore it is dependent upon the
operating system how much stack it is allocating.
| Is This Answer Correct ? | 0 Yes | 0 No |
depending upon requirements we can pass no of arguments in
functions
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / sudeep dutta
Any number of parameters can be passed.The parameters may be
of any type.But the number of parameters used completely
depends on the function that you have declared.
| Is This Answer Correct ? | 0 Yes | 0 No |
Answer / subbu
maximum number of arguments for a single function is 253
| Is This Answer Correct ? | 2 Yes | 3 No |
Given only putchar (no sprintf, itoa, etc.) write a routine putlong that prints out an unsigned long in decimal. [ I gave the obvious solution of taking % 10 and / 10, which gives us the decimal value in reverse order. This requires an array since we need to print it out in the correct order. The interviewer wasn't too pleased and asked me to give a solution which didn't need the array ].
What is difference between structure and union with example?
which of the following is allowed in a "C" arithematic instruction a) [] b) {} c) () d) none of the above
How will you write a code for accessing the length of an array without assigning it to another variable?
what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);
What are the different types of endless loops?
What is calloc() function?
int main() { int i=-1,j=-1;k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d%d%d%d%d",i,j,k,l,m); }
ratio,age,persentage
What is && in c programming?
what are far pointers?
Synonymous with pointer array a) character array b) ragged array c) multiple array d) none