How can I discover how many arguments a function was actually called with?



How can I discover how many arguments a function was actually called with?..

Answer / Kaushambi Singh

The number of arguments passed to a function in C can be discovered by checking the number of elements in the argument list provided to the main() function or using variable argument lists (varargs) by including stdarg.h header file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

what will be the output off the following program? #include<stdio.h> int main() { int a; a=015+0*71+5; printf("%d,a"); return0; }

9 Answers   HCL,


what is difference between userlevel threads and kernel level threads ?what are the trades offs between these two approaches ? what approach is most frequently used and why ?

1 Answers  


Can 'this' pointer by used in the constructor?

1 Answers  


Explain how do I determine whether a character is numeric, alphabetic, and so on?

1 Answers  


In a byte, what is the maximum decimal number that you can accommodate?

1 Answers  


how can i get this by using for loop? * ** * **** * ******

3 Answers   Excel,


Explain what is the benefit of using an enum rather than a #define constant?

1 Answers  


print out of string in this format; 1. "rajesh" 2. \n 3. %d

5 Answers   mpower,


Why c++ is called c++ and not c+?

9 Answers   EBS,


How many loops are there in c?

1 Answers  


Can a local variable be volatile in c?

1 Answers  


. Write a program to get a string and to convert the 1st letter of it to uppercase

2 Answers   HTC,


Categories