Search This Blog

Friday, October 7, 2011

Write a Program to Display ASCII Table

   1:  #include<stdio.h>
   2:  #include<conio.h>
   3:  void main()
   4:  {
   5:  int i=0;
   6:  for(i=0;i<=100;i++)
   7:  {
   8:  printf("char %c : ASCII value: &%d\n",i,i);
   9:  }
  10:  getch();
  11:  }

No comments:

Post a Comment