#include <stdio.h> int main(){ int i = 4; i = printf(" %d ", ++i) + printf(" %d ", i--); printf(" %d ", i); }
This is Undefined behavior in C language.
Here are some which are also undefined Example in C language.
@Avdhesh Singh Rana right final value of i will be 6
@Manoj Goswami how you have decided that which "printf" will evaluate first?
64.3k questions
77.9k answers
244k comments
80.0k users