#include int main() { int i = 10; printf(\"%d\\n\", ++(-i)); // <-- Error Here }
What is wrong with ++(-i)?
++(-i)
The ++ operator increments a variable. (Or, to be more precise, an lvalue—something that can appear on the left side of an assignment expression)
++
(-i) isn't a variable, so it doesn't make sense to increment it.
(-i)