#include <iostream>
using namespace std;
#define TRUE 1
#define FALSE 0
#define N 2+3
int fun(int x, ...)
{
return x;
}
int main()
{
int n;
n = fun(1,2,3);
cout << n << endl;
n = fun(1,2);
cout << n << endl;
return 0;
}
![](https://i-blog.csdnimg.cn/blog_migrate/491c836c6681ea2545487f0ff29651aa.png)
#include <iostream>
using namespace std;
#define TRUE 1
#define FALSE 0
#define N 2+3
int fun(int x, ...)
{
return x;
}
int main()
{
int n;
n = fun(1,2,3);
cout << n << endl;
n = fun(1,2);
cout << n << endl;
return 0;
}