C++第三章理论题错题整理2
Because the cstdarg defines this header file to process the unknown number of arguments.
va_list is provided by C++ to access manipulated arguments in function.
va_start initialises the the list of arguments in <stdarg.h> header file.
__cdecl is the default calling convention for a compiler in c++.
#include <iostream>
using namespace std;
int func (int a, int b)
{
cout << a;
cout << b;
return 0;
}
int main(void)
{
int(*ptr)(char, int);
ptr = func;
func(2, 3);
ptr(2, 3);
return 0;
}

![C++第三章理论题错题整理2
[编程语言教程]](https://www.zixueka.com/wp-content/uploads/2024/01/1706713426-4dca7b87d1b5855.jpg)
