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 an example of structure?

806


Can i use “int” data type to store the value 32768? Why?

971


Write a program to reverse a given number in c language?

859


write a C program: To recognize date of any format even formats like "feb-02-2003","02-february-2003",mm/dd/yy, dd/mm/yy and display it as mm/dd/yy.

3574


What is the size of enum in c?

845


Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.

3402


Why c is called a middle level language?

831


What is a structure member in c?

764


Is int a keyword in c?

736


What's the difference between constant char *p and char * constant p?

900


Describe the order of precedence with regards to operators in C.

842


Explain what are linked list?

808


What is graph in c?

816


What is the difference between declaring a variable by constant keyword and #define ing that variable?

3023


What are the different file extensions involved when programming in C?

1018