Program to print all ASCII values and equivalent characters.
#include<iostream.h>
#include<conio.h>
void main()
{
int i=0;
cout<<"List of all ASCII values and equivalent characters\n";
while(i<256)
{
cout<<i<<" -> "<<(char)i<<endl;
i++;
}
getch();
}
A complete table of ASCII values and its equivalent characters is given below for reference.
ASCII values and equivalent characters |
Extended ASCII values and equivalent characters |
No comments:
Post a Comment