C C++ program to print complete ASCII table

C C++ program to print complete ASCII table

विभिन्न प्रकार के Computer Coding Systems जैसे—BCD, ASCII, EBCDIC आदि के बारे में अधिक जानने के लिए देखें—Computer Coding Systems

C Language के बारे में अधिक जानने के लिए देखें—Brief Introduction of C

C++ Language के बारे में अधिक जानने के लिए देखें—Brief Introduction of C++

C program to print complete ASCII table

#include<stdio.h>
int main()
{
    int num=0;
    while(num<=255)
    {
        printf("%d = %c\t",num,num);
        num++;
    }
    return 0;
}

C++ program to print complete ASCII table

#include<iostream>
using namespace std;
int main()
{
    int num=0;
    char ch;
    while(num<=255)
    {
        ch=num;
        cout<<num<<" = "<<ch<<"\t";
        num++;
    }
    return 0;
}

Output of C C++ program to print complete ASCII table

C C++ program to print complete ASCII table

ASCII table related other C C++ programs

  1. Find ASCII values of a character
  2. Convert lowercase to uppercase
  3. Convert uppercase to lowercase
Share it to:

Published by

admin

I am a computer teacher, programmer and web developer