char aa = 0x34; //16進位表示
char bb = 0x57;
char cc;
cc = aa & bb; //&是AND的意思
// cc = _____ //ANS:14
int aa[6] = {2,5,7,3,6,0};
int cnt[10];
int ii;
int aa,bb,cc;
aa = rand()%10;
bb = rand()%10;
cc = ( aa > 10) ? ( bb < 10 )+1 : (aa>10)+5;
printf("%d",cc); //cc=5
char aa = 21;
char bb = 13;
char cc;
cc = ( aa > bb) ? aa:bb;
printf("%d",cc); //ans=21 cc那的?和:是什麼意思 和答案有相關嗎
int ii;
char str[10]="ABCDEFGH";
for (ii=0;ii<4;ii++){
str[ii]=str[5-ii];
}
printf("%s",str); //Ans:FEDDEFGH
我也只有剛好一個主科70