I am a newbie C coder. I am wondering why the following program's printf output show a trailing 'D' after the decimal integer. Note the trailing D after the 8 in the output snippet below.
compiler: gcc version 2.95.4 20020320 [FreeBSD]
here is the output:
---- output ----
% ./count.exe
123
123
8D
^
this is the 'D' I am talking about.
---- snip ----
Code:#include <stdio.h> /* count characters in input; 1st version */ main() { long nc; nc=0; while (getchar() != EOF) ++nc; printf("%ld\n", nc); }