正在加载图片...
The c Programming language Chapter8 Functions Exp: The expression will be converted to the return type of the function as specified in the function definition mainO i float a, b Int c scanf( %of, %of", &a, &b) c=max(a, b) printf("Max is%dn",c) int max(float x, float y) i float z y!xy, return(z)The C Programming Language Chapter 8 Functions Exp : The expression will be converted to the return type of the function as specified in the function definition . main() { float a,b; int c; scanf("%f,%f",&a,&b); c=max(a,b); printf("Max is %d\n",c); } int max(float x, float y) { float z; z=x>y?x:y; return(z); }
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有