In this post, we will write a C++ program to display all the ASCII values.

C++ program to display the ASCII values


C++ program to display ASCII values.

#include<iostream>
#include<conio.h>

int main()
{
   system("cls");

    char ch;
    int i;

    for(i=255;i>=0;i--)
    {
        std::cout<<char(i);
    }

    getch();
    return 0;
}


Output

C++ program to display the ASCII values