+ 2
I will assume it's c++.
Write code or maths expression separated with space in between.
//code below
#include <iostream>
using namespace std;
int main() {
int a=2, b=3, c=4,d;
d=a++ +b * c - 4+ +b;
cout << d;
return 0;
}
//Above code returns 13 in most compilers
In case you actually meant to increment b like below then don't!
d = a++ + b * c - 4 + ++b
#Read, why it's bad..
https://stackoverflow.com/questions/4176328/undefined-behavior-and-sequence-points
https://stackoverflow.com/questions/2397984/undefined-unspecified-and-implementation-defined-behavior
https://blog.regehr.org/archives/213