program to find the ASCII value of a number

Answer Posted / rukmanee

#include<stdio.h>
#include<conio.h>
main()
{
int num;
clrscr();
printf("enter a number");
scanf("%d",&num);
printf("the ascii value of the number is %c",num);
getch();
}

Is This Answer Correct ?    2 Yes 12 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a global variable in c?

591


What is static identifier?

704


What are the back slash character constants or escape sequence charactersavailable in c?

686


How can I write data files which can be read on other machines with different word size, byte order, or floating point formats?

614


How does selection sort work in c?

623






Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?

630


Explain what is a stream?

608


What is sorting in c plus plus?

565


What are variables and it what way is it different from constants?

786


What is the difference between typedef struct and struct?

602


What is function in c with example?

631


What are identifiers and keywords in c?

573


main() { int i = 10; printf(" %d %d %d ", ++i, i++, ++i); }

636


What is the use of define in c?

597


write a c program for swapping two strings using pointer

2094