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
What is a dynamic array in c?
What is function in c with example?
How would you use the functions fseek(), freed(), fwrite() and ftell()?
What is a static function in c?
What is %s and %d in c?
What is %lu in c?
what is a constant pointer in C
What is the difference between single charater constant and string constant?
How do you view the path?
What is the use of #include in c?
how can I convert a string to a number?
Why c is called free form language?
how do you write a function that takes a variable number of arguments? What is the prototype of printf () function?
What is the purpose of sprintf?
What is a class c rental property?