char ascii c++
#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;
}
char ascii c++
#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;
}
c++ program to convert character to ascii
/*Q; Design a program that take a char value from the
user and display the ASCII value of the entered value?*/
#include<iostream>
using namespace std;
int main()
{
char a;
cin>>a;
int num=(int)a;
cout<<"\nASCII value of "<<a<<"="<<num;
return 0;
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us