正在加载图片...
问题: an maino 实参可以是表达{ 式吗? int x, y, Z; output();如果实参和形参 的类型不一样? scanf(%d/d, &x, &y) max(x, y) printf("%d", 2) void output() printf( 大大大大大大大大大大大大大大 int max(int a, int b) intf(* very good *n) fint c printf( 5大大大大大大大大大大大大大大 n”) c=a>b? a: b return(c)main() { …… output( ); …… } void output( ) { printf(”**************\n”); printf(”* very good *\n”); printf(”**************\n”); } main( ) { int x,y,z; scanf(“%d%d”,&x,&y); z=max(x, y); printf(“%d”,z); } int max (int a , int b ) { int c ; c=a>b ? a : b ; return( c ) ; } 问题: 实参可以是表达 式吗? 如果实参和形参 的类型不一样?
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有