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
Explain how can I pad a string to a known length?
Describe the header file and its usage in c programming?
Do pointers store the address of value or the actual value of a variable?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Why enum is used in c?
Why does notstrcat(string, "!");Work?
Can we compile a program without main() function?
What are file streams?
c program for searching a student details among 10 student details
What are terms in math?
Explain how can I write functions that take a variable number of arguments?
What is s or c?
What is the difference between specifying a constant variable like with constant keyword and #define it? i.e what is the difference between CONSTANT FLOAT A=1.25 and #define A 1.25
What is FIFO?
What is the process of writing the null pointer?