允许数组做形参,调用函数时,只需要传数组名就可以了,如:
void
func(
int
a[]
,
int
n
)
//形参a是数组
{
}
main()
{
int
a[]={1,2,3};
fun(
a,
3
);
//实参只传数组名a
}
本文地址: http://www.goggeous.com/20250108/1/1319983
文章来源:天狐定制
版权声明:除非特别标注,否则均为本站原创文章,转载时请以链接形式注明文章出处。
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08职业培训
2025-01-08 10:13:24职业培训
2025-01-08 10:13:16职业培训
2025-01-08 10:13:15职业培训
2025-01-08 10:13:14职业培训
2025-01-08 10:13:14职业培训
2025-01-08 10:13:13职业培训
2025-01-08 10:13:12职业培训
2025-01-08 10:13:03职业培训
2025-01-08 10:13:03职业培训
2025-01-08 10:13:02职业培训
2024-12-04 19:31职业培训
2024-12-04 06:35职业培训
2024-12-11 07:25职业培训
2024-12-07 10:09职业培训
2024-12-08 23:55职业培训
2025-01-01 15:25职业培训
2025-01-07 18:45职业培训
2024-12-14 21:54职业培训
2024-12-13 21:13职业培训
2024-12-31 19:08职业培训
扫码二维码
获取最新动态