Below is my code snippet in C.
void main(){
 int x = 7;
 x = x++;
 printf("%d",x);
}
output : 8
public static void main(String[] args){
        int x = 7;
        x =  x++;
        System.out.println(x);
    }
output : 7
i am not getting why both language giving different output. I've referred below link What is x after "x = x++"?
 
     
     
     
    