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
How was c created?
When is a void pointer used?
What is the difference between pure virtual function and virtual function?
What does a function declared as pascal do differently?
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
What is I ++ in c programming?
What is auto keyword in c?
Can a function argument have default value?
Draw a diagram showing how the operating system relates to users, application programs, and the computer hardware ?
Can a variable be both static and volatile in c?
why programs in c are running with out #include
#include
What is masking?
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.
What is sorting in c plus plus?