I have a single line code,
int a = 10; a = ++a * ( ++a + 5);
My expected output was 12 * (11 + 5) = 192 ,but I got 187
12 * (11 + 5) = 192
Expressions are evaluated left to right. Parentheses (and precedence) just express grouping, they don't express ordering of evaluation.
So
11 * (12 + 5) ++a ++a
equals
187