FUNCTIONS incrementing and decrementing
#include <iostream> using namespace std; int main() { int x = 0; if (x++) // This part of the syntax is where my question is on the if (x++) cout << "True \n"; else cout << "False\n"; return 0; } // cout False #include <iostream> using namespace std; int main() { int x = 0; if (++x) // This part lies my main question on the if(x++) cout << "True \n"; else cout << "False\n"; return 0; } // cout True My question is why does it return "True " with the plus plus/ minus minus sign on the left and return "false" when the plus plus and minus minus sign is on the right side? Anyone can help :) I have the concept for this just want some clarification from anyone.. Thanks