题目内容

写出下面程序的运行结果是()。#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);}

若i,j已定义为int型,则以下程序段中内循环的总次数是______。for(i=3; i; i--)for(j=0; j<2; j++)for(k=0; k<=2; k++){...}

A. 30
B. 36
C. 27
D. 18

答案查题题库