nt f1(int a, int b)
{
  (void)b;
  return a;
}
 
int f2(int a, int b)
{
  return a;
}

 

C/C++语句 "(void) 变量名;" 的作用是,避免未使用变量的编译警告

 

相关文章: