C program to print the ASCII values 0 to 255 with numbers and related value
Posted by Samath
Last Updated: January 02, 2017
  439

Write a C program to print the ASCII values 0 to 255 with numbers and related value.

Code:

#include<stdio.h>
int main()
{
 int i;

 for(i=1; i<=255; i++)
   printf("\nValue: %d -> ASCII character: %c",i,i);

 return 0;
}