Page Rank Checker

Sunday, 1 June 2014

Print ASCII Value Of All Characters Program In C


This article is from solution of Let Us C by Yashwant Kanetkar. I also posted many another articles regarding solutions of Let Us C. If you have any problem regarding solution then give comment, I will surely reply your question.

Q. Write a program to print all the ASCII values and their equivalent characters using a while loop. The ASCII values vary from 0 to 255.

Ans.

#include<stdio.h>
#include<conio.h>
void main()
{
    clrscr();
    int i=0;
    while(i<=255)
    {
        printf("\nASCII Value Of %c is %d",i,i);
        i++;
    }
    getch();
}