#include <stdio.h>int add(int b);//函数声明int main(void){int a=0;//a初始化add(a);//a实参,代替add函数形参ba=add(a);//将add函数返回值赋给aprintf(”%d”,a);return 0;}int add(int b){int b=2;//b初始化return b;//将b值返回给主函数}make一下 太经典了 函数调用 不理解形参和实参 看完都会了
Copyright @ 2025 taoyuan7788 Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster