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

How do you list a file’s date and time?

828


Explain the use of fflush() function?

863


any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

924


Write a program to print fibonacci series without using recursion?

850


What standard functions are available to manipulate strings?

834


How can I determine whether a machines byte order is big-endian or little-endian?

839


Where does the name "C" come from, anyway?

883


What are structure types in C?

882


Why isnt any of this standardized in c?

851


Why dont c comments nest?

845


how can f be used for both float and double arguments in printf? Are not they different types?

837


What are the standard predefined macros?

845


using for loop sum 2 number of any 4 digit number in c language

2002


What is modeling?

828


Why does this code crash?

852