请大家指教下这段代码!!谢谢
#include <stdio.h>int main(){
char b[32];
int n, t, k, i;
while (scanf("%d", &t) == 1){
if (t == 0){
printf("0\n0\n");
continue;
}
n = t; k = 0;
while (n > 0){
b[k++] = n&1;(关键是这俩符号没看懂)
n >>= 1;
}
for (i=k-1; i>=0; --i){
printf("%d", b[i]);
}
printf("\n");
n = t; k = 0;
while (n > 0){
b[k++] = n&7;(这里 谢谢)
n >>= 3;(这里 谢谢)
}
for (i=k-1; i>=0; --i){
printf("%d", b[i]);
}
printf("\n");
}
return 0;
}