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

Why functions are used in c?

580


How can I manipulate strings of multibyte characters?

631


What do you understand by friend-functions? How are they used?

641


What is wrong with this program statement? void = 10;

814


a c variable cannot start with a) an alphabet b) a number c) a special symbol d) both b and c above

680






How do you define a string?

649


Are the outer parentheses in return statements really optional?

570


Explain About fork()?

640


What are the different types of objects used in c?

566


What is the process to create increment and decrement stamen in c?

583


What is scope of variable in c?

555


What is union and structure?

567


Why is void main used?

613


write a program to generate address labels using structures?

4003


What is a built-in function in C?

786