#include <cstdio>
int your_function(int a, int b)
{
return a - b;
}
int main(void)
{
int i = 10;
//printf + function call expression
printf("%d - %d - %d\n", i, your_function(++i, ++i), i);
//nested function calls to custom function:
//you may expect 12 - (12 - 13) = 12 - (-1) = 13
printf("%d\n", your_function(i, your_function(i++, i)));
return 0;
}
I2luY2x1ZGUgPGNzdGRpbz4KCmludCB5b3VyX2Z1bmN0aW9uKGludCBhLCBpbnQgYikKewogIHJldHVybiBhIC0gYjsKfQoKaW50IG1haW4odm9pZCkKewogICAgaW50IGkgPSAxMDsKCiAgICAvL3ByaW50ZiArIGZ1bmN0aW9uIGNhbGwgZXhwcmVzc2lvbgogICAgcHJpbnRmKCIlZCAtICVkIC0gJWRcbiIsIGksIHlvdXJfZnVuY3Rpb24oKytpLCArK2kpLCBpKTsKICAgIC8vbmVzdGVkIGZ1bmN0aW9uIGNhbGxzIHRvIGN1c3RvbSBmdW5jdGlvbjoKICAgIC8veW91IG1heSBleHBlY3QgMTIgLSAoMTIgLSAxMykgPSAxMiAtICgtMSkgPSAxMwogICAgcHJpbnRmKCIlZFxuIiwgeW91cl9mdW5jdGlvbihpLCB5b3VyX2Z1bmN0aW9uKGkrKywgaSkpKTsKICAgIHJldHVybiAwOwp9