同一段程序在Java和C中的不同结果

C语言:

  1. #include <stdio.h>  
  2. main()  
  3. {  
  4.     int x=5;  
  5.     x = x++;  
  6.     printf("x=%d\n",x);  

Java语言:

  1. package com.zhangry.calc;  
  2.  
  3. public class Calc {  
  4.  
  5.     public static void main(String[] args) {  
  6.         int x=5;  
  7.         x = x++;  
  8.         System.out.println(x);  
  9.     }  

原文链接:http://blog.csdn.net/hongqishi/article/details/7308472

原文地址:https://www.cnblogs.com/shipeng22022/p/4614090.html