1

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;
}
2
Contributors
1
Reply
3
Views
11 Years
Discussion Span
Last Post by bofarull
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.