How to implement variable argument functions ?
Variable-argument functions in C are inherently unsafe
since there is no language-level mechanism to ensure that
the actual arguments agree in type and number with the
arguments that the function will be using. There are
several ways to implement variable argument functions in C
You can try to implement such function by taking the
address of a formal argument and working your way through
the stack frame.A better alternative is to use the
__builtin_next_arg function on gcc and then work your way
up the stack. You can write your variable argument
functions using the standard macros in <stdarg.h> and
<vararg.h>.
| Is This Answer Correct ? | 8 Yes | 2 No |
What are the different file extensions involved when programming in C?
how can be easily placed in TCS.
How do I read the arrow keys? What about function keys?
Which is an example of a structural homology?
What is structure padding in c?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
What is ## preprocessor operator in c?
what is constant pointer?
How can I display a percentage-done indication that updates itself in place, or show one of those twirling baton progress indicators?
What language is windows 1.0 written?
What is wild pointer in c?
write a program to print the one dimensional array.