Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / pansare sandeep
#include <iostream.h>
#include<conio.h>
void main()
{
char c;
int d;
clrscr();
cout<<"Enter any key"<<endl;
cin>>c;
d=c;
cout<<"Corresponding ascii is "<<d;
getch();
}
| Is This Answer Correct ? | 11 Yes | 6 No |
Post New Answer View All Answers
When should we use pointers in a c program?
What is meant by keywords in c?
Why flag is used in c?
List the variables are used for writing doubly linked list program.
What does c value mean?
#include
What is integer constants?
Explain 'far' and 'near' pointers in c.
What are actual arguments?
What is "Duff's Device"?
Explain how do you search data in a data file using random access method?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
Give me the code of in-order recursive and non-recursive.
What is meant by realloc()?
Tell me when is a void pointer used?