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 difference between union and structure in c?
What is the difference between malloc() and calloc() function in c language?
How can I sort more data than will fit in memory?
What is c language in simple words?
What is class and object in c?
What is 1f in c?
how to capitalise first letter of each word in a given string?
.find the output of the following program? char*myfunc(char*ptr) { ptr +=3; return (ptr); } int main() { char*x,*y; x="HELLO"; y=myfunc(x); printf("y = %s ",y); return 0; }
What does the file stdio.h contain?
What's the difference between constant char *p and char * constant p?
Create a registration form application by taking the details like username, address, phone number, email with password and confirm password (should be same as password).Ensure that the password is of 8 characters with only numbers and alphabets. Take such details for 3 users and display the details. While taking input password must appear as “****”.
What is the general form of #line preprocessor?
Why is structure important for a child?
Why is it important to memset a variable, immediately after allocating memory to it ?
Define Array of pointers.