當前位置:學問君>學習教育>考研>

Motorola筆試題

學問君 人氣:7.84K

2.#define f1(n) (n)*(n)

Motorola筆試題

int i=5;

int k=0;

k=f1(i++);

printf("%d %d",i,k);

輸出結果是?

3.下面哪個for循環是無限循環?

for(int i=010;i==10;i+=0)

for(int i=10;(i++^--i)==0;i+=0)

l relay 和email access分別用了什麼協議?

a mobile phone,軟件執行期stack data (棧)存在於?

, b h c om e of the above

i;

int x=0x12345678;

unsigned char *p=(unsigned char *)&x;

for(i=0;i

printf("%2x",*(p+i));

在80x86pc機器上和sun sparc unix上執行結果分別是?

a[2][2][3]={{{1,6,3},{5,4,15}},{{3,5,33},{23,12,7}} };

for(int i=0;i<12;i++)

printf("%d ",_______);

空格處填上合適的'語句,順序打印出a中的數字。

fun(char *a,char *b){

a=b;

(*a)++;

}

void main(){

char s1='a',s2='a';

char *p1=&s1;

char *p2=&s2;

fun(p1,p2);

printf("%c%c",s1,s2);

請寫出輸出結果。