语句inti=97;System.out.println((char)i);它的运行结果是()
A: A
B: a
C: 65
D: 程序出错
A: A
B: a
C: 65
D: 程序出错
举一反三
- 语句inti=65;System.out.println((char)i);它的运行结果是() A: A B: a C: 65 D: 程序出错
- 读程序,写出运行结果。void main(){inti;char c;i='A';c=65;printf("%c,%d\n",c,c);printf("%c,%d\n",i,i);}运行结果为: _________________
- 运行char c = 'A'; int i = 26; System.out.println(c + i); 代码的结果是
- 下列程序编译并运行的结果为()publicclassTest{publicstaticvoidmain(String[]args){try{inti=1;System.out.println(i++);}finally{System.out.println(++i);}}}
- 下列程序的运行结果是:publicclassTest{publicstaticvoidmain(Stringargs[]){intm[]={1,2,3,4,5,6,7,8};intsum=0;for(inti=0;i8;i++){sum=sum+m[i];if(i==3)break;}System.out.println(sum);}}