Hoaxblog.com

Everything is hoax!

Pages:

  • About

Categories:

  • Apache (6)
  • backup (1)
  • cache (2)
  • Cpanel/WHM (11)
  • ddos (1)
  • exam (1)
  • file hosting (2)
  • General (11)
  • Hosting (1)
  • It’s me (2)
  • linux (1)
  • Linux Shell (14)
  • Make Money Online (2)
  • Mysql (2)
  • mysqldump (1)
  • php (1)
  • Programming (3)
  • proxy (1)
  • Reseller (1)
  • SEO (1)
  • Servers (21)
  • VPN (1)
  • Windows (6)
  • wordpress (1)

Archives:

  • June 2008
  • May 2008
  • April 2008
  • March 2008
  • February 2008
  • January 2008
  • December 2007
  • October 2007
  • May 2007
  • April 2007

Blogroll

  • Free Rapidshare Downloads

Meta:

  • Register
  • Login
  • Valid XHTML
  • XFN
  • WordPress


A C Programme to display ASCII Numbers

Today i was trying to figure a programme which will show the ASCII numbers for different characters. It is really a simple code, but really handy. Lets have a look into the code first:

1
2
3
4
5
6
7
8
9
10
#include <stdio.h>
#include <conio.h>  
void main()
{
  unsigned char a;
 
  for(a=32;a<128;a++)
  printf("%3d = ā€˜%c’\t",a,a);
  getch();
}

Here what is happening is we are startig a look from 32 and ending at 127 as we already know ASCII Numbers ranged from 32-127 and all are serialed, so what i have done is only executed all the equivalent character with the specific number. And definitely now the code has become a simple programme which will display some useful informations for you :)

This entry was posted on Friday, April 13th, 2007 at 4:24 pm and is filed under Programming. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

Leave a Reply


© Copyright by Hoaxblog.com