iOS-InterviewQuestion-collection
iOS-InterviewQuestion-collection copied to clipboard
第一个逻辑运算题答案
int a=5,b;
b = (++a)+(++a);
System.out.println(b);
使用java验算了结果是13呀
OC 的结果也是13,js的结果也是13
int a=5,b;
b=(++a)+(++a);
NSLog(@"%d", b);
C++的结果也是13 OC也是13 应该是搞错了
int a = 5,b;
b = (++a) + (++a);
cout<<b<<endl;