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 are the different file extensions involved when programming in C?

758


c programs are converted into machine language with the help of a) an interpreter b) a compiler c) an operatinf system d) none of the above

736


What is methods in c?

641


How would you use the functions fseek(), freed(), fwrite() and ftell()?

705


How to Throw some light on the splay trees?

621






How can I delete a file?

630


Write a program of prime number using recursion.

619


what is associativity explain what is the precidence for * and & , * and ++ how the folloing declaration work 1) *&p; 2) *p++;

2008


Why is it important to memset a variable, immediately after allocating memory to it ?

1555


Explain Basic concepts of C language?

646


Does c have function or method?

591


Why header file is used in c?

577


If i have an array 0 to 99 i.e,(Size 100) I place the values 1 to 100 randomly like a[0]=29,a[1]=56 upto array[99].. the values are only between 1 to 100. getting the array values by using scanf.. If i entered one wrong element value line a[56]=108. how can i find it.. and also how to find the missing value in 1 to 100.. and i want to replace the missing values.. any one of them know please post your answer..

1592


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1959


How can a number be converted to a string?

607