请问如下代码执行后a和b的值分别是什么
2023-07-06
int a = 22;
int b = 11;
a = b + (b = a) * 0;
答案:a=11 b=22
public class InterviewDemo
public static void main(String[] args)
int a = 22;
int b = 11;
a = b + (b = a) * 0;
System.out.println(a);
System.out.println(b);
请问如下代码执行后a和b的值分别是什么2023-07-06 int a = 22; int b = 11; a = b + (b = a) * 0; 答案:a=11 b=22 public class InterviewDemo public static void main(String[] args) int a = 22; int b = 11; a = b + (b = a) * 0; System.out.println(a); System.out.println(b); 相关内容: |