正在加载图片...
The c Programming language Chapter8 Functions 8.4 Arguments - Call By Value B Parameter(formal argument)and Argument(actual argument parameter: variables named in the parenthesized list in a function definition >argument: the value used in a call of the function Exp: compare two numbers maino i int a, b c=max(a, b:(main )scanf("%d, %od", &a, &b); arguments max(int x, int y) (max万1c= max(a, b) printf("Max is %d", c); i int z z=>y?: y max(int x, int y parameters returni int return(The C Programming Language Chapter 8 Functions §8.4 Arguments --- Call By Value ❖Parameter(formal argument) and Argument (actual argument) ➢parameter :variables named in the parenthesized list in a function definition; ➢argument : the value used in a call of the function. c=max(a,b); (main ) max(int x, int y)(max ) { int z; z=x>y?x:y; return(z); } Exp:compare two numbers and output the max main() { int a,b,c; scanf("%d,%d",&a,&b); c=max(a,b); printf("Max is %d",c); } max(int x, int y) { int z; z=x>y?x:y; return(z); } arguments parameters
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有