Find ASCII Value of Character in C++ - 👑 सार्थक मुंड S3 🤴🏻

Find ASCII Value of Character in C++

Write a program (WAP) in CPP to read two numbers from keyboard(User Input) to find ASCII value of a character.

#include <iostream>
using namespace std;

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




Also Read :-

  1. Programs of C

  2. Programs  of C++

  3. Programs of Java

  4. Programs of Python

  5. Codes with HTML, CSS, JS

  6. More Questions & Answers

 

Previous article
Next article

Leave Comments

Post a Comment

Articles Ads

Articles Ads 1

Articles Ads 2

Advertisement Ads