while i was bored and randomly typing code in and compiling it for no reason, this caught my attention:
shouldnt this equal the original number added by 2? well it does it show the result but it always has a -36 after it on the next line. i have no idea why this happens , i even tried it in different ways like:Code:#include <stdio.h> int main() { int c; while((c = getchar()) != EOF) printf("%d\n", (c = (c - '0') + 2)); }
c = c + 2;
printf("%d", c);
can somebody please explain this?