main() { int a=2,b=-1,c=2; if(a
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/09 03:15:33
main() { int a=2,b=-1,c=2; if(a
main() { int a=2,b=-1,c=2; if(a
main() { int a=2,b=-1,c=2; if(a
3啊.
a
#include int b=2; int fun(int *k) {b=*k+b;return(b);} main() {int a[10]={1,2,3,4,5,6,7,8},
main() { int a,b,c; a=1;b=2;c=3; if(a
#include int a=3,b=5; max (int a,int b) {int c; c=a>b?a:b; return (c); } void main() {int
#include int b=2; int fun(int*k) { b=*k+b;return(b);} main() {int a[10]={1,2,3,4,5,6,7,8}#include int b=2; int fun(int*k) { b=*k+b;return(b);} main() {int a[10]={1,2,3,4,5,6,7,8},i;for(i=2;i
下列程序的输出结果是 int b=2; int func(int *a) { b += *a; return(b);} main() A4 B6 C8 D10
void fun(int a,int b) { int t; t=a;a=b;b=t; } main()void fun(int a,int b){ int t; t=a;a=b;b=t; } main() { int c[10]={1,2,3,4,5,6,7,8,9,0}.i; for(i=0;i
#include int f1(int a,int b)15,9 { int c; c=b%2; return a+c; }int f2(int a,int b){ int c;a+=a;b+=b;c=f1(a+b=14,++b9);return c;}void main(){ int a=3,b=4;cout
main() { int a=2,b=-1,c=2; if(a
main() { int a=1,b=2,c=2,t; while(a
#include main( ) { int a=1,b=2; for(;a
#include func(int a,int b){int c; c=a+b;returnc;}main(){intX=6,r;r#include func(int a,int b){int c; c=a+b;returnc;}main(){int x= 6,r;r = func (x,x+=2);printf (%d
,r);}A.14 B.15 C.16 D.17
#include using namespace std; int main() { int a,b,c; a=3; int f(int x,int y,int z);#include using namespace std; int main() {int a,b,c;a=3;int f(int x,int y,int z); cin>>a>>b>>c;c=f(a,b,c);cout
#include void main() { int a=1 b=2 c=3 cout
#include int b=3; int fun(int *a) { b+=*a; return(b); }void main(){ int a=2,b=2;b+=fun(&a);printf(“%d
”,b);读程序写出程序执行结果
#include int main() { int a,b,c; scanf(%d,%d,&a,&b); printf(c=a+b
,a,b); }
#include void f(int*x,int y) {*x=y+1;y=*x+2;} main() {int a=2,b=2; f(&a,b); printf(%d
%d#includevoid f(int*x,int y){*x=y+1;y=*x+2;}main(){int a=2,b=2;f(&a,b);printf(%d
%d,a,b);}
# include main() { int a=-2,b=0; while(a++&&++b); printf(%d,%d
,a,b);}
矩阵相加(C++)#include using namespace std; const int rows=3;const int cols=3;void matrixadd(int *,int *,int *,int,int);int main(){int a[rows][cols]={{1,3,5},{7,8,11},{13,15,17}};int b[rows][cols]={{9,8,7},{6,5,4},{3,2,1}};int c[rows][cols]={0