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 what is the stack?
Is c a great language, or what?
What is a program?
What is a struct c#?
What is %d used for?
How can you determine the size of an allocated portion of memory?
Given below are three different ways to print the character for ASCII code 88. Which is the correct way1) char c = 88; cout << c << " ";2) cout.put(88);3) cout << char(88) << " "; a) 1 b) 2 c) 3 d) constant
How do shell structures work?
What is a pointer and how it is initialized?
to print the salary of an employee according to follwing calculation: Allowances:HRA-20% of BASIC,DA-45% of BASIC,TA-10%. Deductions:EPF-8% of BASIC,LIC-Rs.200/-Prof.Tax:Rs.200/- create c language program?
How can you access memory located at a certain address?
Explain how do you use a pointer to a function?
What is a sequential access file?
can anyone please tell about the nested interrupts?
a single linked list consists of nodes a to z .print the nodes in reverse order from z to a using recursion