Write a program to accept a character & display its
corrosponding ASCII value & vice versa?
Answer Posted / govindkrishna
#include<stdio.h>
#include<conio.h>
main()
{
char ch;
printf("enter any charecter %c /n");
scanf("%c ",&ch);
printf("the ACSCII value is %d= /n",ch);
}
Is This Answer Correct ? | 61 Yes | 30 No |
Post New Answer View All Answers
why use functions a) writing functions avoids rewriting the same code over and over b) using functions it becomes easier to write programs and keep track of what they are doing c) a & b d) none of the above
Which is better oop or procedural?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
what are bit fields in c?
Differentiate between declaring a variable and defining a variable?
List some applications of c programming language?
What is infinite loop?
Explain modulus operator.
What is the difference between Printf(..) and sprint(...) ?
how to count no of words,characters,lines in a paragraph.
How many types of functions are there in c?
Explain union.
write a program to print largest number of each row of a 2D array
How are 16- and 32-bit numbers stored?
Explain how do you determine a file’s attributes?