C | Functions | Question 6

Last Updated :
Discuss
Comments

Output of following program? 

C
#include<stdio.h>

void dynamic(int s, ...)
{
    printf("%d", s);
}

int main()
{
    dynamic(2, 4, 6, 8);
    dynamic(3, 6, 9);
    return 0;
}

2 3

Compiler Error

4 3

3 2

Tags:
Share your thoughts in the comments