0

Write a C++ program to display ASCII code of a character? urgent

27th Dec 2016, 11:06 AM
Abhishek
Abhishek - avatar
6 Réponses
+ 2
#include <iostream> using namespace std; int main() { int a; a='a'; cout <<a; return 0; }
27th Dec 2016, 11:10 AM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
+ 1
first declare an int then equal it to char like this int a; a = 'a'; cout << a;
27th Dec 2016, 11:07 AM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
+ 1
can you please give me the program.
27th Dec 2016, 11:08 AM
Abhishek
Abhishek - avatar
+ 1
I gave you a pattern go on i dont have access to my pc sorry.
27th Dec 2016, 11:09 AM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar
+ 1
Tnx a lot bro!
27th Dec 2016, 11:11 AM
Abhishek
Abhishek - avatar
0
@Abhishek youre welcome
27th Dec 2016, 11:11 AM
Matin Zadehdolatabad
Matin Zadehdolatabad - avatar