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


Please Help Members By Posting Answers For Below Questions

How was c created?

581


When is a void pointer used?

669


What is the difference between pure virtual function and virtual function?

640


What does a function declared as pascal do differently?

595


general for is %wd,f-d; in this system "w" means a) 'w' represent total width of digits b) 'w' represent width which includes the digits before,after decimal place and the decimal point c) 'w' represent width which includes the digits before only d) 'w' represent width after decimal place only

576






What is I ++ in c programming?

609


What is auto keyword in c?

779


Can a function argument have default value?

654


Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?

2109


Can a variable be both static and volatile in c?

594


why programs in c are running with out #include? some warnings are display in terminal but we execute the program we get answer why? eg: main() { printf("hello world "); }

1306


#include { printf("Hello"); } how compile time affects when we add additional header file .

1415


What is masking?

627


stripos — Find position of first occurrence of a case- insensitive string int stripos ( char* haystack, char* needle, int offset ) Returns the numeric position of the first occurrence of needle in the haystack string. Note that the needle may be a string of one or more characters. If needle is not found, stripos() will return -1. The function should not make use of any C library function calls.

1836


What is sorting in c plus plus?

556