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 |
how do you programme Carrier Sense Multiple Access
write a progam to compare the string using switch case?
what are bps & baud rates? differentiate these two?
What are the types of type qualifiers in c?
How can I delete a file?
What are compound statements?
Are pointers integer?
write a program to concatenation the string using switch case?
what is the differance between pass by reference and pass by value.
how do you redirect stdout value from a program to a file?
What is nested structure?
Write a program that takes a 5 digit number and calculates 2 power that number and prints it
5 Answers ABS, Accenture, HCL, Infosys, Infotech, SoftSolve, Software India, TCS, Vertex, Vimukti Technologies,