In the program, printf("%d", getchar())
is printing an extra 10.
when i give input like a, it prints 9710 instead of 97, same for others
#include <stdio.h>
int main() {
int c;
while((c=getchar()) != EOF) {
printf("%d", c);
}
printf("\n\tENDED\n\n");
return 0;
}
me@Device-xx:~/Desktop/Test/Tmps$ gcc 118.c -o 118
me@Device-xx:~/Desktop/Test/Tmps$ ./118
a
9710s
11510x
12010