[求助]程序上有点疑问
main(){
int i; 书上这个地方 是int i=0; 但是2个程序运行的结果是一样的,请问int i=0;的作用是什么啊?
char c;
c='Z';
i=('a'<=c&&c<='z')?1:0;
if(i)
printf("c is the lowercase %c.\n",c);
else
printf("c is the uppercase %c.\n",c);
}这是一个判断字母大小写的程序。
2006-01-18 04:36
2006-01-18 21:53