源程序:
#include <iostream>using namespace std;void func(int a, int b, int c = 0){ cout << a << b << c << endl;}int main(){ func(5,9); system("pause"); return 1;}
运行结果: