Thursday, April 4, 2013

C++ program to find ASCII Code for Characters and numbers

C++ Program Write a Program to Enter Char or Number and Check its ASCII Code



#include <iostream>
using namespace std;

int main(){
 char ascii;
 int numeric;
 cout << "Give character: ";
 cin >> ascii;
 cout << "Its ascii value is: " << (int) ascii << endl;
 cout << "Give a number to convert to ascii: ";
 cin >> numeric;
 cout << "The ascii value of " << numeric << " is " << (char) numeric;
 return 0;
}


OUTPUT:
Give character: d
Its ascii value is: 100
Give a number to convert to ascii: 25
The ascii value of 25 is  


---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------
--------------------------------------

How to find ASCII value of character in c
ASCII code and character variables - C++ Tutorial
Getting ASCII Code in C++ - C++
ASCII in the console...‎ 
a little help please‎ 
converting char to ascii code‎ 
ASCII Character code advancement, in a c‎++ 
c++ - printing ASCII codes of characters stored 
How to return the ASCII code value of a character in C++
Searches related to ASCII Code for Characters in C++ program
c++ convert char to ascii code
ascii table c++
extended ascii c++
unicode characters c++
special characters c++
ascii characters c++
ascii characters visual c++
ascii characters c++
C++ Program Write a Program to Enter Char and Check its ASCII Code How to find ASCII value of character in c++ c++ - Scanning ascii value of each character of a string 
Get ASCII character from number in C/C++
IT Certification Category (English)640x480

Partner Sites

VideoToGifs.com

EasyOnlineConverter.com

SqliteTutorials.com


Top Online Courses From ProgrammingKnowledge

Python Course http://bit.ly/2vsuMaS
Java Coursehttp://bit.ly/2GEfQMf
Bash Coursehttp://bit.ly/2DBVF0C
Linux Coursehttp://bit.ly/2IXuil0
C Course http://bit.ly/2GQCiD1
C++ Coursehttp://bit.ly/2V4oEVJ
PHP Coursehttp://bit.ly/2XP71WH
Android Coursehttp://bit.ly/2UHih5H
C# Coursehttp://bit.ly/2Vr7HEl
JavaFx Coursehttp://bit.ly/2XMvZWA
NodeJs Coursehttp://bit.ly/2GPg7gA
Jenkins Course http://bit.ly/2Wd4l4W
Scala Coursehttp://bit.ly/2PysyA4
Bootstrap Coursehttp://bit.ly/2DFQ2yC
MongoDB Coursehttp://bit.ly/2LaCJfP
QT C++ GUI Coursehttp://bit.ly/2vwqHSZ