main(){int a,b,d=25;a=d/10%9;b=a&&(-1);printf("%d,%d\n",a,b);}我算的是2,1.可是答案是6,0.求具体解释

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/27 15:45:29
main(){int a,b,d=25;a=d/10%9;b=a&&(-1);printf(
x)MЬ+QHII52NM74PNMTS5Դ.(HPRMQMS*ִ}1gr'?_b\ݓ͛tF`g>ٱ (Pld`hR‹=`%p?|{S=߽zzz6yv ?']

main(){int a,b,d=25;a=d/10%9;b=a&&(-1);printf("%d,%d\n",a,b);}我算的是2,1.可是答案是6,0.求具体解释
main(){int a,b,d=25;a=d/10%9;b=a&&(-1);printf("%d,%d\n",a,b);}我算的是2,1.可是答案是6,0.求具体解释

main(){int a,b,d=25;a=d/10%9;b=a&&(-1);printf("%d,%d\n",a,b);}我算的是2,1.可是答案是6,0.求具体解释
没弄错代码的话
结果就是2,1
这个是vc2010的运行结果
2,1
请按任意键继续...

#include int main() { int a,b,c; scanf(%d,%d,&a,&b); printf(c=a+b ,a,b); } swap(int *p1,int *p2) {int temp; temp=*p1; *p1=*p2; *p2=temp; } main() { int a,b; int *pointer_1,*pswap(int *p1,int *p2){int temp;temp=*p1;*p1=*p2;*p2=temp;}main(){ int a,b;int *pointer_1,*pointer_2;scanf(%d,%d,&a,&b);pointer_1=&a;pointer_2=&b;if(a main() {int a=666,b=888; printf(%d ,a,b) }为什么结果是666 求三个数最大值,哪里错了#includeint main(){int max(int a,int b,int c);int a,b,c,m;scanf(%d%d%d%,&a,&b,&c);m=max(a,b,c);printf(%d,m);} int fm(int a,int b) {if(b==1)return a; else return a+fm(a,b-1); } main( ) { printf(%d ,fm(4,3)) int fm(int a,int b) {if(b==1)return a; else return a+fm(a,b-1); } main( ) { printf(%d ,fm(4,3) 有三个数字abc依次按大小顺序 C#includeint main(){int max(int x,int y,int z);int med(int x,int y,int z);int min(int x,int y,int z);int a,b,c,d,e,f;scanf(%d,%d,%d,&a,&b,&c);d=max(a,b,c);e=med(a,b,c);f=min(a,b,c);printf(%d,%d,%d,d,e,f);re 谁来帮我找找错啊int max(int a,int b);void main(){int x,y,z;int max(int a,int b);printf(input two numbers: );scanf(%d%d,&x,&y);z=max(x,y);printf(maxmum=%d,z);}int max(int a,int b);{if(a>b) return a;else return b;}------------------Con #include main() {int a,b,c,t1,t2; scanf(%d%d%d,&a,&d,&c); t1=a overloaded function as left operand#include int Max(int a,int b,int c){int max;if(a>b)if(a>c)max=a; elsemax=c;elseif(b>c)max=b;elsemax=c;}void main(){int max(int a,int b,int c);int a,b,c; printf(Input a number:); scanf(%d,&a); printf(Input secon main( ) {unsigned int a=3,b=10; printf(%d/n,a1); } # include main() { int a=-2,b=0; while(a++&&++b); printf(%d,%d ,a,b);} #include using namespace std; int main() { int a,b,c,d; a=c=0;b=1;d=20; if (a) d=d-10;#include using namespace std;int main() { int a,b,c,d; a=c=0;b=1;d=20; if (a)d=d-10; elseif b) if(!c) d=15; else d=25; cout #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 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);} main() { int x=1,y=2,z=3; int r; r=func(x+y+z,x++,++y); printf(%d,r); } int func(int a,int b,intint func(int a,int b,int c){int d;d=a+b+c;return d;} #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(){unsigned a=32768;int b;b=a;printf(b=%d ,b);}