题目内容

下面程序,其输出结果是()。#include main(){ int a1, a2, a3 = 65;a1 = 97;a2 = 98;printf("a1=%c,a2=%c,a3=%c\n",a1,a2,a3);}

查看答案
更多问题

写出下面程序的运行结果是()。#include main(){ int x = 10, y = 20 ,m,n;m = x++;n = ++y;printf("x=%d,y=%d,m=%d,n=%d\n", x, y, m ,n);m=x--;n=--y;printf("x=%d,y=%d,m=%d,n=%d\n", x, y, m, n);}

假设 a=12,表达式a%=(5%2)中a的运算结果是。

下程序的输出结果是()。#include void main(){ char a = 0x95,b,c;b = (a&0xf)<<4;c = (a&0xf0)>>4;a = b|c;printf("%x\n",a);}

下程序的输出结果是()。#include void main(){unsigned int a=0112,x,y,z;x = a>>3;printf("x=%o\n",x);y =~(~0<<4);printf("y=%o\n",y);z = x&y;printf("z=%o\n",z);}

答案查题题库