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 do we use header files in c?

592


What is %d called in c?

767


What is the use of printf() and scanf() functions?

642


What are the advantages of c language?

674


How main function is called in c?

636






Input is "rama loves rajesh and rajesh Loves rama also and rajesh wear gloves and bloves" To print output is count the numbers of times repeted the word love without case sensitive.

1607


What is #include in c?

611


a=10;b= 5;c=3;d=3; if(a printf(%d %d %d %d a,b,c,d) else printf("%d %d %d %d a,b,c,d);

654


Explain bit masking in c?

646


What is sizeof int in c?

615


what are the program that using a two dimensional array that list the odd numbers and even numbers separately in a given 10 inputs values

1268


What is atoi and atof in c?

626


What is fflush() function?

651


Explain what is the advantage of a random access file?

677


Why doesnt this code work?

626