#include<stdio.h> int main() { int x, y = 7; x = ++y + ++y + y--; printf("%d\n", x); return 0; }
What is the output of this code snippet ?
A. 27
B. 26
C. 25
D. Compilation error
https://www.geeksforgeeks.org/sequence-points-in-c-set-1/
See here might it will help you to understand. It is a sequence point problem
https://gateoverflow.in/62411/undefined-behaviour-in-c
please avoid discussion on Undefined Behavior in C
64.3k questions
77.9k answers
244k comments
80.0k users