19/03/2023

Write a C ++ Program to Print ASCII Value of a Character

Write a C ++ Program to Print the ASCII Value of a Character. How to Print Characters Using ASCII Value in C++. How to Print ASCII Value in C++.  ASCII was developed from telegraph code. Its first commercial use was as a seven-bit teleprinter code promoted by Bell data services. Work on the ASCII standard began on October 6, 1960, with the first meeting of the American Standards Association's (ASA) (now the American National Standards Institute or ANSI) X 3.2 subcommittee. The first edition of the standard was published in 1963.

ASCII Full Form

ASCII Full Form is "American Standard Code for Information Interchange".

C ++ Program to Print ASCII Value of a Character


#include <iostream>
using namespace std;
int main()
{
	/*c++ program to print ascii value of a character */

	char a;
	int b;
	cout << "Enter The Character ";
	cin >> a;
	b = a;
	cout << b << endl;
}

ASCII Code Table – Printable, Non-Printable & Extended PDF Click Here

The Output of Print ASCII Value of a Character


The Output of Print ASCII Value of a Character

Similar to ASCII Value


Previous Post
Next Post

post written by:

Hi, I’m Ghanendra Yadav, SEO Expert, Professional Blogger, Programmer, and UI Developer. Get a Solution of More Than 500+ Programming Problems, and Practice All Programs in C, C++, and Java Languages. Get a Competitive Website Solution also Ie. Hackerrank Solutions and Geeksforgeeks Solutions. If You Are Interested to Learn a C Programming Language and You Don't Have Experience in Any Programming, You Should Start with a C Programming Language, Read: List of Format Specifiers in C.
Follow Me

0 Comments: