program to find the ASCII value of a number

Answer Posted / dhinakar

#include <stdio.h>
#include <stdlib.h>
#include <conio.h>

void main()
{
char num;
printf("Enter the number");
scanf("%c",&num);
printf("ASCII of %d is %d\n",atoi(&num),num);

}

Is This Answer Correct ?    7 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When is a void pointer used?

678


a formula,a series of steps,or well defined set of rules for solving a problem a) algorithem b) program c) erdiagram d) compiler

613


Define Spanning-Tree Protocol (STP)

643


What is a null string in c?

589


What is structure and union in c?

602






Why we use void main in c?

597


write a program to print data of 5 five students with structures?

1606


write a c program thal will find all sequences of length N that produce the sum is Zero, print all possible solutions?

2413


The __________ attribute is used to announce variables based on definitions of columns in a table?

671


how to make a scientific calculater ?

1565


Which node is more powerful and can handle local information processing or graphics processing?

829


What is a stream?

651


Explain what is a pragma?

594


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

1768


Why use int main instead of void main?

599