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


Please Help Members By Posting Answers For Below Questions

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

648


Which is better oop or procedural?

628


write a c program to calculate sum of digits till it reduces to a single digit using recursion

2716


what are bit fields in c?

599


Differentiate between declaring a variable and defining a variable?

602






List some applications of c programming language?

549


What is infinite loop?

624


Explain modulus operator.

591


What is the difference between Printf(..) and sprint(...) ?

780


how to count no of words,characters,lines in a paragraph.

3899


How many types of functions are there in c?

581


Explain union.

633


write a program to print largest number of each row of a 2D array

1867


How are 16- and 32-bit numbers stored?

719


Explain how do you determine a file’s attributes?

589