program to find the ASCII value of a number

Answer Posted / babitha

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

void main()
{
char input;
printf("enter an input to get ascii of input");
scanf("%c",&input);
printf("\n ascii of input %c: is %d",input,input);
getch();
}

Is This Answer Correct ?    39 Yes 19 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a program to use switch statement.

909


What is the difference between a string and an array?

949


How can I manipulate strings of multibyte characters?

836


Which is an example of a structural homology?

1065


What is spaghetti programming?

907


Write a function stroverlap that takes (at least) two strings, and concatenates them, but does not duplicate any overlap. You only need to worry about overlaps between the end of the first string and the beginning of the second string. Examples: batman, manonthemoon = batmanonthemoon batmmamaman, mamamanonthemoon = batmmamamanonthemoon bat, man = batman batman, batman = batman batman, menonthemoon = batmanmenonthemoon

2014


if p is a string contained in a string?

1639


What are the disadvantages of external storage class?

836


Explain what are preprocessor directives?

843


Differentiate abs() function from fabs() function.

817


What is the newline escape sequence?

864


int i=3; this declaration tells the C compiler to a) reserve space in memory to hold the integer value b) associate the name i with this memory location c) store the value 3 at this location d) all the above

1024


What is the purpose of 'register' keyword in c language?

838


What are different types of variables in c?

801


Why cant I open a file by its explicit path?

835