Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第一个逻辑运算题答案 #26

Open
FulChou opened this issue Apr 29, 2020 · 2 comments
Open

第一个逻辑运算题答案 #26

FulChou opened this issue Apr 29, 2020 · 2 comments

Comments

@FulChou
Copy link

FulChou commented Apr 29, 2020

        int a=5,b;
        b = (++a)+(++a);
        System.out.println(b);

使用java验算了结果是13呀

@zlfyuan
Copy link

zlfyuan commented Oct 23, 2020

OC 的结果也是13,js的结果也是13
int a=5,b;
b=(++a)+(++a);
NSLog(@"%d", b);

@liangqian609
Copy link

C++的结果也是13 OC也是13 应该是搞错了
int a = 5,b;
b = (++a) + (++a);
cout<<b<<endl;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants