Thursday, April 4, 2013

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

1:52 PM

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

Written by

We are one of the initiators of the development of information technology in understanding the need for a solution that is familiar and close to us.

0 comments:

Post a Comment

 

© 2013 Klick Dev. All rights resevered.

Back To Top