问题 单项选择题

以下( )表达式是不合法的。

A.string x="hello";int y=9;x+=y;

B.string x="hello";int y=9;if(x={}

C.string x="hello";int y=9;x=x+y;

D.string x=null;inty=(x!=nul&&(length()>0)length():0;

答案

参考答案:B

单项选择题
单项选择题