1.

What will be the output of the following C code?
#include <stdio.h>
#include <stdarg.h>
void function(int, ...);
int main()
{
function(21, 13, 15, 17, 101, 113);
return 0;
}
void function(int n, ...)
{
int num, k = 0;
va_list start;
va_start(start, n);
while (k != 5)
{
num = va_arg(start, int);
k++;
}
printf("%d", num);
}

A. 13
B. 15
C. 17
D. 101
E. 113
Answer» F.


Discussion

No Comment Found

Related MCQs