67 152
Assignments Done
99,4%
Successfully Done
In November 2018

Answer to Question #57378 in C++ for Sajid

Question #57378
Q.write a program which accepts a character and display its ASCII value.
Expert's answer
#include <iostream>
#include <cstdlib>

using namespace std;


int main() {

char c;
cout<<"Enter a character: ";
cin>>c;

cout << "Ascii value for the character: " << (int) c << endl;

system("pause");

return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be first!

Leave a comment

Ask Your question

Submit
Privacy policy Terms and Conditions