Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / priya.m
#include<iostream.h>
#include<conio.h>
void main()
char c;
int a;
clrscr();
cout<<"enter any word"<<photo;
cin>>c;
a=c;
cout<"corresponding ASCII is"<<a;
getch();
}
| Is This Answer Correct ? | 2 Yes | 4 No |
Post New Answer View All Answers
What is meant by gets in c?
Write a code of a general series where the next element is the sum of last k terms.
Explain high-order bytes.
can anyone please tell about the nested interrupts?
What is the best organizational structure?
Is multithreading possible in c?
What is a good way to implement complex numbers in c?
Can we access the array using a pointer in c language?
What is the difference between the expression “++a” and “a++”?
How are portions of a program disabled in demo versions?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
how can f be used for both float and double arguments in printf? Are not they different types?
What is the 'named constructor idiom'?
Dont ansi function prototypes render lint obsolete?
Calculate the weighted average of a list of n numbers using the formula xavg = f1x1+f2x2+ ….+ fnxn where the f’s are fractional weighting factors, i.e., 0<=fi<1, and f1+f2+….+fn = 1