gpt4 book ai didi

c - main 中的无类型参数

转载 作者:行者123 更新时间:2023-11-30 16:02:36 25 4
gpt4 key购买 nike

Possible Duplicate:
“int main (vooid)”? How does that work?

main(a,b,c)
{
a=1;
b=2;
c=3;
printf("%d %d %d",a,b,c);
}

三个整数参数如何 a , b , c在 main 内部是可能的,因为我们知道第二个形式参数必须是指向字符的指针?

最佳答案

参数参数隐式为int,除非您另外指定。

main 只需要在托管<上为 main(void)main(int, char **)/em> 平台(即基本上在操作系统下运行)。在独立实现中,main 的原型(prototype)是实现定义的。

关于c - main 中的无类型参数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5092033/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com