int a = 3, b = 5;max( int a, int b ){int c;c= a > b ? a : b;return(c);}main(){int a = 9;printf("%d ", max(a, b));}运行结果为________。
查看答案
写出以下程序的运行结果1.int i=5;main(){int i=3;{int i=10;i++;printf("%d\n",i);}f1();i+=1;printf("%d\n",i);}int f1(){i=i+1;return(i);}
以下程序段的运行结果是_________。main(){int a=3,b=5;void swap (int,int);swap(a,b);printf("a=%d,b=%d\n",a,b);}void swap(int x,int y){int temp;temp=x;x=y;y=temp;printf("x=%d,y=%d\n",x,y);}
程序分析题写出下面程序的运行结果。#include int a=100;s(){ static int a =20;a++;printf("%d\n",a);}void main(){int i;for(i=1;i<=3;i++){ a++;printf("%d",a);s();}}
程序分析题写出下面程序的运行结果。#include void inv (int x[ ], int n){int t,i,j;for (i=0; i