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 do you mean by c?

809


What is the difference between array and linked list in c?

890


What is keyword in c?

807


Is c pass by value or reference?

833


Write a program to show the change in position of a cursor using c

848


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

891


What is wrong with this declaration?

854


What is the difference between test design and test case design?

1861


What is a structure in c language. how to initialise a structure in c?

855


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

1017


What is union and structure?

813


What is getch() function?

851


Explain how can you avoid including a header more than once?

853


Differentiate Source Codes from Object Codes

1191


Write program to remove duplicate in an array?

846