若变量n中的值为24,则print函数共输出【12】行,最后一行有【13】个数。void print(int n,int aa[]){int i;for(i=1;i<=n;i++){printf("%6d",aa[i]);if(!(i%5)) printf("\n");}}
查看答案
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();}}