Answer to Question #5114 in C++ for yousra fatima

Question #5114
Develop a program in c that takes as input a decimal value and prints its corresponding ASCII Character
1
Expert's answer
2011-11-17T08:55:53-0500
#include <stdio.h>

int main (int argc, char * argv[])
{
char c;
int i;

printf("Enter a decimal value: ");
scanf("%i", &i);
c = (char)i;
printf("ASCII Character: %c", c);
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
APPROVED BY CLIENTS