Start New Discussion within our Software Development Community

Commonly strings consist of ASCII characters, some are printable, some are in the backgrounds like the bell, carriage return, linefeed, tab and so forth. This code displays a table of ASCII characters and the corresponding decimal value. As always, you are encouraged to learn here.

/* display the ASCII character table */

#include <stdio.h>

int main()
{
  int k;
  
  for ( k = 14; k < 256; k++ )
  {
    printf ( "%3d = %c ",k, k );
  }
    
  getchar();   /* wait for key */
  return 0;
}
The article starter has earned a lot of community kudos, and such articles offer a bounty for quality replies.