Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / sanjay malik
#include<stdio.h>
main()
{
char ch;
printf("ENTER A CHARACTER: ");
scanf("%c",&ch);
printf("THE ASCII CODE IS %d",ch);}
| Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
How can you be sure that a program follows the ANSI C standard?
What is the c language function prototype?
Define recursion in c.
Here is a good puzzle: how do you write a program which produces its own source code as output?
Explain what is the most efficient way to store flag values?
How can a program be made to print the line number where an error occurs?
What is a file descriptor in c?
Write a program to print ASCII code for a given digit.
Is anything faster than c?
What are the different types of linkage exist in c?
Explain about C function prototype?
What are the types of type qualifiers in c?
What are header files and explain what are its uses in c programming?
I have written a pro*C program to fetch data from the cursor. where in i have used the concept of BULK FETCH.... each FETCH statement is taking lots of time to fetch specified number of rows at...
Where static variables are stored in memory in c?