在C中表示可以有任意个参数,而在C++中表示没有参数。
C语言(C++略)源代码示例:
//test.h
#ifndef _TEST_H
#define _TEST_H
void test();
#endif
//test.c
#include "stdio.h"
#include "test.h"
void test(int a, int b) {
printf("%d, %d\n", a, b);
}
//main.c
#include "test.h"
int main() {
test(1, 0);
return 0;
}