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
Can a pointer be volatile in c?
Is void a keyword in c?
Explain how are 16- and 32-bit numbers stored?
number of times a digit is present in a number
What is New modifiers?
What is a c token and types of c tokens?
a c code by using memory allocation for add ,multiply of sprase matrixes
What is c value paradox explain?
Without Computer networks, Computers will be half the use. Comment.
Can we initialize extern variable in c?
Why c is a mother language?
What is hashing in c language?
program to find error in linklist.(i.e find whether any node point wrongly to previous nodes instead of next node)
What is the difference between a free-standing and a hosted environment?
In a byte, what is the maximum decimal number that you can accommodate?