Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / rukmanee
#include<stdio.h>
#include<conio.h>
void main()
{
char ch;
clrscr();
printf("\n enter a character :");
scanf("%c",&ch);
printf("the corresponding ascii value of the given
character is %d",ch);
getch();
}
| Is This Answer Correct ? | 31 Yes | 17 No |
Post New Answer View All Answers
How we can insert comments in a c program?
Explain how to reverse singly link list.
What is graph in c?
Why do we need arrays in c?
Is c procedural or object oriented?
What is table lookup in c?
Where static variables are stored in memory in c?
When should a type cast be used?
Why & is used in c?
What is external variable in c?
What is the purpose of 'register' keyword in c language?
Why is sprintf unsafe?
what is use of malloc and calloc?
What are examples of structures?
What is equivalent to ++i+++j?