program to find the ASCII value of a number

Answer Posted / seshaphani

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

}

Is This Answer Correct ?    9 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the difference between class and unio?

2139


Difference between constant pointer and pointer to a constant.

855


Why do we use & in c?

807


Explain how do I determine whether a character is numeric, alphabetic, and so on?

922


What is the value of uninitialized variable in c?

837


What does char * * argv mean in c?

847


Create a simple code fragment that will swap the values of two variables num1 and num2.

1083


What is pointers in c with example?

835


Can a local variable be volatile in c?

794


which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;

2907


Why should I use standard library functions instead of writing my own?

1008


what are the advantages of a macro over a function?

927


What is time null in c?

796


What does c value mean?

896


What are the different types of C instructions?

1041