printf() prints on the standard output (console).
scanf() reads from the standard output (console).
What exactly are you after?
Printing all the characters from the ASCII table:
for (int i = 0; i < 256; i++)
Reading any character (to be exact reading a character string):
printf("String read: %s\n", buffer);