int a = 1; int b; int c = 4; c = a + b;问此时c的值为多少?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 05:43:06
int a = 1; int b; int c = 4; c = a + b;问此时c的值为多少?
x)+QHTU0V1 T2PL%*hE_N_lgӷ%?aϓ.tD{"}*_`gC-ZZXZZOHz6gՋ@@ Ϛ[m}; y{ƋuKfgL~qAba6`S-|'Ɏ^LC`UO,N|PK 46 n

int a = 1; int b; int c = 4; c = a + b;问此时c的值为多少?
int a = 1; int b; int c = 4; c = a + b;问此时c的值为多少?

int a = 1; int b; int c = 4; c = a + b;问此时c的值为多少?
-858993459
在b未赋值的情况下b的默认值是:-858993460

答案是99,b不赋值的情况下,int b是b的ascii码的值98,

b+1