#include int main() { int i = 10; printf(\"%d\\n\", ++(-i)); // <-- Error Here }
What is wrong with ++(-i)?
++(-i)
Try this instead:
#include int main() { int i = 10; printf("%d\n", (++i) * -1); }