xxxxxxxxxx
/*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;
}
xxxxxxxxxx
#include<bits/stdc++.h>
using namespace std;
int main(){
char a=char(97); //ascii value of a
cout<<a;
}