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 similarities between c and c++?
List some basic data types in c?
why little endian and big endian came?y they using differently? y they not used commonly ?wt is application of little and big ?
Efficient data structure for store/search list of 1000 records a)array b)double linked list c)circular queue d)hash table
Why calloc is better than malloc?
program to print circle structure
What is void main ()?
Program to find the sum of digits of a given number until the sum becomes a single digit
what is the use of #pragma pack, wer it is used?
HOW TO SWAP TWO NOS IN ONE STEP?
Are the expressions * ptr ++ and ++ * ptr same?
How arrays can be passed to a user defined function