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

Should I learn c before c++?

978


Why is it that not all header files are declared in every C program?

905


What is d scanf?

795


Is that possible to store 32768 in an int data type variable?

881


Explain what is the use of a semicolon (;) at the end of every program statement?

973


What is #include called?

811


Is null always equal to 0(zero)?

799


Which is the best website to learn c programming?

824


How can I read data from data files with particular formats?

822


Is sizeof a keyword in c?

770


What are the different types of C instructions?

991


What is wild pointer in c?

806


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

924


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1298


A character flag or control mechanism that delineates one data item from another a) variable b) constant c) delimiter d) call by reference

859