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
c program to compute AREA under integral
What is the difference between procedural and functional programming?
What is union in c?
What is the use of function overloading in C?
design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.
How is a macro different from a function?
What is string in c language?
What are the usage of pointer in c?
How can I implement sets or arrays of bits?
application attempts to perform an operation?
Explain the ternary tree?
List the difference between a While & Do While loops?
Lists the benefits of c programming language?
What is the purpose of type declarations?
What is strcpy() function?