C Programming :: Variable Number of Arguments
-
Point out the error in the following program.
#include
-
Point out the error if any in the following program (Turbo C).
#include
#include for(j=1; j printf("%c", c); } }
-
Point out the error in the following program.
#include
-
Point out the error in the following program.
#include
int main() { void display(char *s, int num1, int num2, ...); display("Hello", 4, 2, 12.5, 13.5, 14.5, 44.0); return 0; } void display(char *s, int num1, int num2, ...) { double c; char s; va_list ptr; va_start(ptr, s); c = va_arg(ptr, double); printf("%f", c); } -
Point out the error in the following program.
#include
for(j=1; j
printf("%f", c); } }
-
Point out the error in the following program.
#include
void display(char *s, ...); void show(char *t, ...); int main() { display("Hello", 4, 12, 13, 14, 44); return 0; } void display(char *s, ...) { show(s, ...); } void show(char *t, ...) { int a; va_list ptr; va_start(ptr, s); a = va_arg(ptr, int); printf("%f", a); } -
Point out the error in the following program.
#include