C Program to Print ASCII Values of Characters

#include<stdio.h>
#include<conio.h>
void main()
{
    clrscr();
    char ch;
    int i;
    for(i=1; i<=255; i++)
    {
        ch=i;
        printf("%d -> %c\t",i, ch);
    }
    getch();
}

Run :

No comments:

Post a Comment

100 C Programs with Code and Output

Program 1: C Program To Read Two Numbers And Print The Sum Of Given Two Numbers. Program 2: C Program To Read Three Numbers And Prin...