小编bjo*_*n93的帖子

C中的变量函数f()与f(...)

以下两个可变函数定义有什么区别?

int f()
{
    /* function definition */
}

int f(...)
{
    /* function definition */
}
Run Code Online (Sandbox Code Playgroud)

f()实际上定义为可变函数.我也假设<stdarg.h>可以包含和使用.

c variadic-functions

2
推荐指数
1
解决办法
88
查看次数

标签 统计

c ×1

variadic-functions ×1