Can anyone explain why the code above doesn't work properly, but yet, the codes below do?Code:#include <stdio.h> int main(void) { char c; for (c = 0; c < 256; c++) printf("%c\n", c); return 0; }
Code:#include <stdio.h> int main(void) { unsigned c; for (c = 0; c < 256; c++) printf("%c\n", c); return 0; }Code:#include <stdio.h> int main(void) { int c; for (c = 0; c < 256; c++) printf("%c\n", c); return 0; }