C++第三章理论题错题整理2


	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;
    }
hmoban主题是根据ripro二开的主题,极致后台体验,无插件,集成会员系统
自学咖网 » C++第三章理论题错题整理2