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
What is the difference between strcpy() and memcpy() function in c programming?
Write a program which returns the first non repetitive character in the string?
What is the use of pointers in C?
What is an array in c?
What is the use of parallelize in spark?
while loop contains parts a) initialisation, evalution of an expression,increment /decrement b) initialisation, increment/decrement c) condition evalution d) none of the above
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58
Where static variables are stored in c?
What is array of structure in c programming?
Where are some collections of useful code fragments and examples?
Can we replace the struct function in tree syntax with a union?
Why clrscr is used in c?
Is there a way to compare two structure variables?
Does c have class?
The number of measuring units from an arbitarary starting point in a record,area,or control block to some other point a) recording pointer b) offset c) branching d) none