int f(int a, int b){ int c; do{ c = a ^ b; b = a & b << 1; a = c; }while(b != 0); return c; }
5
29
-29
-5
执行完成,耗时:N/A Line 7: Char 19: runtime error: left shift of negative value -42 [solution.c]
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题