Saturday, June 18, 2016

C Program Code: Display ASCII Characters

C Program Code:

#include<stdio.h>
int main()
{
    int i;
    printf("%15s%10s \n", "Decimal Value", "ASCII");
    for (i = 0; i <= 127; i++)
    {
        printf("%10d%10c \n", i, i);
    }
    printf("Press enter to continue... \n");
    fflush(stdin);
    getchar();
    return 0;
}

Display ASCII Characters in C Language Output Screenshot