main() { int a[]={2,4,6,8},*p=a,i; for(i=0;i
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/30 11:20:21
x)MTV+QH611ӱ*MɴVH/ȴ5δI*'M~
v<=ټ9OwMy~͞NXx]}_ldGÓO7l|>Ov=
T|V˓/h|bX[mܧ :W3b
{Ma); 1Ɏ^@<]謧s6Ovv$ف 3y
main() { int a[]={2,4,6,8},*p=a,i; for(i=0;i
main() { int a[]={2,4,6,8},*p=a,i; for(i=0;i
main() { int a[]={2,4,6,8},*p=a,i; for(i=0;i
结果应该是6吧.
这个你自己跑一下就知道了.看你的代码里边a[i]=*p++后边少一个;
赋值的时候改变下代码不就是对应地a[i]=a[i]么?
void main() {int t=1;fun(fun(t));} fun(int h) {stvoid main(){int t=1;fun(fun(t));}fun(int h){static int a[3]={1,2,3}; int k; for(k=0;k
c++求2+22+222+2222+22222.#includevoid main(){int sum=0;int a=2;int n;coutn;for(int i=1;i
#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 t=1;fun(fun(t));} fun(int h){static int a[3]={1,2,3};int k; for(k=0;k
main() { int a,b,c; a=1;b=2;c=3; if(a
main() { int a; for(a=1;a
main() {int m[10],a;for(a=0,a
void fun(int p) { int d=2; p=d++; printf(%d,p); } main() { int a=1; fun(a); printf(%d
,a); }
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
main() {int a[6],i; for(i=1;i3))%5; printf(%2d,a[i]);} }
#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
37、有以下程序 int a=2; int f(int *a) {return (*a)++;} main( ) { int s=0; { int a=5; s+=f(&a); } s+答案为什么是C,37、有以下程序 int a=2; int f(int *a) {return (*a)++;} main( ) { int s=0; { int a=5; s+=f(&a); } s+=f(&a); printf(%d
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 void fun(int p) { int d=2; p=d++; printf(“%d”,p);} main() { int a=1; fun(a); printf(“%d
下列程序的输出结果是 int b=2; int func(int *a) { b += *a; return(b);} main() A4 B6 C8 D10
矩阵相加(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