#include<stdio.h>
void main() {
int x = 5;
int y = 10;
int z = ++x * x++ * --y * y--;
printf("%d\n", z);
}
Output: 3402
public class Main {
public static void main(String[] args) {
int x = 5;
int y = 10;
int z = ++x * x++ * --y * y--;
System.out.println(z);
}
}
Output: 2916
The Evaluation of theses expressions in C and Java are confusing can someone please help Me, what am i missing? I understand how this works in Java but am confused wrt C.