#include<stdio.h>
#include

Loading

Choose the correct option.

#include
#include
void varfun(int n, ...);
int main() {
varfun(3, 7, -11.2, 0.66);
return 0;
}
void varfun(int n, ...) {
float ptr;
int num;
va_start(ptr, n);
num = va_arg(ptr, int);
printf("%d", num);
}

A. Compiler Error: too many parameters
B. Error: invalid access to list member
C. error: first argument to ‘va_arg’ not of type ‘va_list’
D. No error

Leave a Comment