Print All ASCII values - C Language Programming

Print the all ASCII values(0-256) using for loop.



Click here to open this program in Turbo C++

/**********************************************************
 Statement - Print All ASCII Values
 Programmer - Vineet Choudhary
 Written For - http://developerinsider.co
 **********************************************************/

#include<stdio.h>
#include<conio.h>

void main()
{
    int i = 0;
    char ch;
    clrscr();
    
    for (i = 0; i < 256; i++)
    {
        printf("%c ",ch);
        ch = ch + 1;
    }
    
    getch();
}
Join

Search articles

Search titles, tags and article content.

    You've successfully subscribed to Developer Insider
    Your account is ready. Welcome to Developer Insider
    Welcome back! You've successfully signed in
    Success! Your account is fully activated, you now have access to all content.