ASCII (American Standard Code For Information Interchange) is a standard code used to exchange many information on the computer. Historically, ASCII developed from telegraphic codes. ASCII code is used by computers to show the text. ASCII code actually has a composition as much as 8 bit binary number. Starting from 0000 0000 to 1111 1111.
Needs to know, every symbol on the keyboard have ASCII code,
For example:
ASCII code 82 = R
ASCII code 114 = r
ASCII code 71 = G
ASCII code 103 = g
ASCII code number is 255 code.
#include<stdio.h>
#include<conio.h>
main()
{
int x; // variable declaration
printf("Input ASCII code= ");//step to input ASCII Code
scanf("%d",&x); // previously entered code, are saved in the character "X"
printf("ASCII %d = %c",x,x); //print ASCII code from character "X"
getch(); //stop for a moment, until the user press any button in keyboard
}
Screenshot:This Script to print All ASCII code in C++
#include<stdio.h>
#include<conio.h>
main()
{
int x; // variable declaration
for (x=1;x<=255; x++)//Looping Process
{
printf("ASCII %3i = %c\n",x,x);// Print ASCII code
}
getch();//stop for a moment, until the user press any button in keyboard
}
Screenshot :
All program in above, just a simple basic program, if you find errors in this program, you can give criticism by comment in here.
And for All Friend who can modify this simple program to get better, you can share your script with a comment on this post.
we're the students of D4 Computer Engineering B 2011. this blog is ours together which so far from perfect 'cause we still learn blogging. we're waiting for your suggestion which will make us better and better :)