67,513
社区成员
发帖
与我相关
我的任务
分享
public static void intTest(){
int x = 5;
x = x++;
System.out.println(x);
}
public static void intTest(){
int x = 5; x++;
System.out.println(x);
}
public static void intTest(){
int x = 5;
x = x++;
x++;
System.out.println(x);
}
#include <stdlib.h>
#include <stdio.h>
int main(){
int x=5;
x=x++;
printf("%d\n",x);
system("pause");
return 0;
}
#include <stdlib.h>
#include <stdio.h>
int main(){
int x=5;
x++;
printf("%d\n",x);
system("pause");
return 0;
}
#include <stdlib.h>
#include <stdio.h>
int main(){
int x=5;
x=x++;
x++;
printf("%d\n",x);
system("pause");
return 0;
}
输出结果是7
c和java中的不一样?
#include <stdlib.h>
#include <stdio.h>
int main(){
int x=5;
x=x++;
printf("%d\n",x);
system("pause");
return 0;
}
public static void intTest(){
int x = 5;
x = x++;
x++;
System.out.println(x);
}
public static void intTest(){
int x = 5;
x = x++;
System.out.println(x);
}
public static void intTest(){
int x = 5; x++;
System.out.println(x);
}