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:

C C++ program to convert uppercase to lowercase

C C++ program to convert uppercase to lowercase

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

Procedure Oriented Programming (POP) और Object Oriented Programming (OOP) में अंतर जानने के लिए देखें—POP vs OOP

C और C++ दोनों भाषाओं में महत्वपूर्ण अंतर क्या है जानने के लिए देखें—C vs C++

C program to convert uppercase to lowercase

#include<stdio.h>
int main()
{
    char ch;
    printf("Enter an uppercase letter: ");
    scanf("%c",&ch);
    ch=ch+32;
    printf("Lowercase = %c",ch);
    return 0;
}

C++ program to convert uppercase to lowercase

#include<iostream>
using namespace std;
int main()
{
    char ch;
    cout<<"Enter an uppercase letter: ";
    cin>>ch;
    ch=ch+32;
    cout<<"Lowercase = "<<ch;
    return 0;
}

Output of C C++ program to convert uppercase to lowercase

C C++ program to convert uppercase to lowercase

Important ASCII table programs in C C++

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

C C++ program to convert lowercase to uppercase

C C++ program to convert lowercase to uppercase

C Language में उपलब्ध Operators और इनके विभिन्न प्रकारो को जानने के लिए देखें—Operators in C

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

C-Language में Operator Precedence और Associativity Rule क्या होता है जानने के लिए देखें— Precedence and Associativity in C

C program to convert lowercase to uppercase

#include<stdio.h>
int main()
{
    char ch;
    printf("Enter a lowercase letter: ");
    scanf("%c",&ch);
    ch=ch-32;
    printf("Uppercase = %c",ch);
    return 0;
}

C++ program to convert lowercase to uppercase

#include<iostream>
using namespace std;
int main()
{
    char ch;
    cout<<"Enter a lowercase letter: ";
    cin>>ch;
    ch=ch-32;
    cout<<"Uppercase = "<<ch;
    return 0;
}

Output of C C++ program to convert lowercase to uppercase

C C++ program to convert lowercase to uppercase

Similar ASCII programs in C C++

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

C C++ program to find ASCII value of a character

C C++ program to find ASCII value of a character

If statement और decision making statements के बारे में अधिक जानने के लिए देखें— If statements in C

Looping और iterative statements के बारे में और अधिक जानने के लिए देखें— Looping statements in C

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

C program to find ASCII value of a character

#include<stdio.h>
int main()
{
    char ch;
    int val;
    printf("Enter a character: ");
    scanf("%c",&ch);
    val=ch;
    printf("ASCII value = %d",val);
    return 0;
}

C++ program to find ASCII value of a character

#include<iostream>
using namespace std;
int main()
{
    char ch;
    int val;
    cout<<"Enter a character: ";
    cin>>ch;
    val=ch;
    cout<<"ASCII value = "<<val;
    return 0;
}

Output of C C++ program to find ASCII value of a character

ASCII Value of a Character C C++ Program Output

Similar ASCII table programs in C C++

  1. Convert lowercase to uppercase
  2. Convert uppercase to lowercase
  3. Print complete ASCII table
Share it to: