Sunday, 20 July 2014

How to find ASCII Values of Alphabets

Structure of the Problem Requirements  

A simple program for beginners to display ASCII Values of English Alphabets. You can extend this program to show all ASCII values and their corresponding characters by modifying for loop for(i=0;i<=255;i++) 
and removing if and continue statements from line no 9 and 10 respectively.

Source Code

int main()
int i;
printf("\n\n ***************** ASCII VALUES ****************** \n\n\n");

if (i >=91 && i <= 96) //to non non alphabet characters
printf("%d - %c",i,i);


return 0;


Output of the Program

ASCII values
ASCII Values

Share it Please

About Author!

Asad Niazi is Software Engineer , Programmer, Web Developers and a young mentor of Tech Solutions Desk and Blogging Solutions . Asad Love to writes about Technology, Programming, Blogging and make money online.


Post a Comment