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 |
#include<stdio.h> main() { int a=1; int b=0; b=++a + ++a; printf("%d %d",a,b); }
write a c program to calculate sum of digits till it reduces to a single digit using recursion
helllo sir give me some information of the basic information the c as printf ,scanf , %d ,%f and why is the main use of these.
What are reserved words with a programming language?
What are preprocessor directives in c?
x=2,y=6,z=6 x=y==z; printf(%d",x)
13 Answers Bharat, Cisco, HCL, TCS,
plz answer..... a program that reads non-negative integer and computes and prints its factorial
p*=(++q)++*--p when p=q=1 while(q<=6)
Why c is called top down?
What are unions in c?
What is local and global variable in c?
What is the default value of local and global variables in c?