program to find the ASCII value of a number

Answer Posted / thiyanesh

#include<stdio.h>
void main()
{
char num ;
printf("enter the number: ");
scanf("%c",&num);
printf("the ascii value of %c is %d",num,num);
return 0;
}

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is the best website to learn c programming?

576


Do you know the use of fflush() function?

592


Why is c still so popular?

612


ATM machine and railway reservation class/object diagram

4796


What is the use of a conditional inclusion statement in C?

594






what is the role you expect in software industry?

1647


write a c program in such a way that if we enter the today date the output should be next day's date.

1677


Write a program to identify if a given binary tree is balanced or not.

680


What are the advantages of using linked list for tree construction?

639


I have seen function declarations that look like this

593


pierrot's divisor program using c or c++ code

1724


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

2388


What is spaghetti programming?

664


what type of questions arrive in interview over c programming?

1551


find out largest elemant of diagonalmatrix

1643