ascii - %c and other symbols (e.g. " ° ") not displayed after compiling -
i started learn c , want proceed learn c++. using textbook , write examples in order bit more familiar programming language , procedure.
since example given in book didn't work, tried find other similar codes. problem after compiling code, program not show , of symbols represented %c
. symbols numbers 33-126 else either nothing @ or white block...
also, on previous example wanted write °c
temperature , couldn't display symbol °
the example found on web not display %c
symbols
#include <stdio.h> #include <ctype.h> int main() { int i; i=0; { printf("%i %c \n",i,i); i++; } while(i<=255); }
is familiar this? why can not output %c
or e.g. °
well???
anything outside range 33-126 isn't visible ascii character. 0-32 stuff backspace (8), "device control 2" (18), , space (32). 127 del, , past isn't ascii; knows how terminal handle that.
Comments
Post a Comment