包乾
unread,Nov 8, 2015, 9:17:51 AM11/8/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to sh...@googlegroups.com
以下是一个我在自学K&R第二章bitwise运算符时候写的一个显示程序,单纯想检验一下'~'这个运算符的作用。
#include <stdio.h>
int main(){
int c;
for(c=0;c<15;c++){
printf("%d\t%d\t%u\t%c\t%c\n",c,~c,~c,~c,c);
}
return 0;
}
奇怪的是我在bash中运行这个程序以后,bash的提示符变成了乱码状。
到底发生了什么?