C++ Program to Print ASCII Value


techstudy.org

HP 15 Core i3 7th gen Laptop(4GB, 1TB HDD, Windows 10) | Rs. 31,490

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
#include<iostream>
using namespace std;

int main()
{
	char c;
	cout << "Enter a character: ";
	cin >> c;
	cout << "ASCII Value of " << c << " is " << int(c);
	return 0;
}

Result

C++ language tech study

     





Related Topics




Popular Posts