main(){int p[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i++7) if(p[i]%2) j+=p[i];printf("%d\n",j);}main(){int p[8]={11,12,12,14,15,16,17,18},i=0,j=0;while(i++
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/29 07:09:52
main(){intp[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i++7)if(p[i]%2)j+=p[i];printf("%d\n",j);}main
main(){int p[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i++7) if(p[i]%2) j+=p[i];printf("%d\n",j);}main(){int p[8]={11,12,12,14,15,16,17,18},i=0,j=0;while(i++
main(){int p[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i++7) if(p[i]%2) j+=p[i];printf("%d\n",j);}
main()
{int p[8]={11,12,12,14,15,16,17,18},i=0,j=0;
while(i++
main(){int p[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i++7) if(p[i]%2) j+=p[i];printf("%d\n",j);}main(){int p[8]={11,12,12,14,15,16,17,18},i=0,j=0;while(i++
数组下标是从0开始的
i=1时的p[i]值是12 i=0是才是11
void Function() { printf(Call Function!
); } int main() { void (*p)(); *(int*)&p=(int)Function;
C++程序解释请详细说明含义好吗?#include#includevoid main(){int* p;p=new int [8];for(int i=0;i
main(){int a[ ]={ 2,5,3,6,8}; int *p,i=1,s=0; for ( p=a; p
#include void main(){ int b=3;int a; int arr[]={6,7,8,9,10}; int *ptr=arr; *(ptr++)+=123;#include using namespace std;void main(){ int b=3;int a; int arr[]={6,7,8,9,10}; int *ptr=arr; *(ptr++)+=123; printf(%d,%d
,*(p
main(){int a[]={2,4,6,8,10};int y=1,x,*p;p=&a[1];for(x=0;x
main(){int p[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i++7) if(p[i]%2) j+=p[i];printf(%d
,j);}main(){int p[8]={11,12,12,14,15,16,17,18},i=0,j=0;while(i++
下列程序的输出结果是( ).main( ){ int p[8]={11,12,13,14,15,16,17,18},i=0,j=0;while(i+ +
main() {int a[5]={2,4,6,8,10},*p,**k; p=a; k=&p; printf(%d,*(p++)); printf(%d
,**k); }为什么结果是24
main() { int a[]={2,4,6,8},*p=a,i; for(i=0;i
矩阵相加(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
#include void fun(int p) { int d=2; p=d++; printf(“%d”,p);} main() { int a=1; fun(a); printf(“%d
void fun(int p) { int d=2; p=d++; printf(%d,p); } main() { int a=1; fun(a); printf(%d
,a); }
struct st{int x,int*y;}*p; int s[]={5,6,7,8} st a[]={10,&s[0],20,&s[1]30,&[2],40,&s[3]} main( ) {p=a;cout
让人费解的一道C语言题目#include int func(int a,int b);void main(){int k=4,m=1,p;p=func(k,m);printf(%d,,p);p=func(%d
,p);}int func(int a,int b){static int m=0,i=2;i+=m+1;m=i+a+b;return(m);}A.8,17 B.8,16 C.8,20 D.8,8能将下为什么
#include stdio.hint fun (int k,int *m){if (k%3) *m=k*k;else *m=k/3;}main(){int (*p) (int,int *),m;p=fun;(*P) (78,&m);printf ( %d
,m);}
#include int main() { int a[3][4]={1,3,5,7,9,11,13,15,17,19,21,23}; int (*p)[4],i,j; p=a;#includeint main(){int a[3][4]={1,3,5,7,9,11,13,15,17,19,21,23};int (*p)[4],i,j;p=a;scanf(%d,%d,&i,&j);printf(a[%d,%d]=%d
,i,j,*(*(p+i)+j));return 0;}要输
【c语言】以下程序的输出结果为什么是8,17?#includeint f(int,int)main(){ int k=4,m=1,p; p=f(k,m);printf(%d,,p); p=f(k,m);printf(%d
,p);}int f(int a,int b){static int m,i=2; i+=m+1;m=i+a+b;return(m);}我觉得输出应该是8,16
超级简单的程序 2 这个怎么改?#includeusing namespace std;int main(){int *p=5; cout