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++

9 comments:

  1. C++ program to Print Table of any Number

    Print table of any number in c++ is depend of general concept of generate table of any number, we can multiply any number with 1 to 10.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Print Table of any Number in C++

    Thanks for sharing this code. It is very simple and easy.

    ReplyDelete
  4. This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

    Love from

    ReplyDelete
  5. This blog awesome and i learn a lot about programming from here.The best thing about this blog is that you doing from beginning to experts level.

    Love from Pprogramming

    ReplyDelete