C++函数的占位参数

int func(int a, int)
{
   return a + 3;
}

int main()
{
   int c = func(2, 100);                                                                     

   cout << "c: " << c << endl;

   return 0;
}
c: 5
posted @ 2022-03-06 21:37  thomas_blog  阅读(73)  评论(0)    收藏  举报