program to find the ASCII value of a number

Answer Posted / vignesh1988i

#include<stdio.h>
#include<conio.h>
void main()
{
char n;
printf("enter the character:");
scanf("%c",&n);
printf("the ascii value %c is %d",n,n);
getch();
}

Is This Answer Correct ?    53 Yes 16 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

a sequence of bytes with one to one corrspondence to those in the external device a) sequential addressing b) address c) byte code d) none

975


Explain the use of bit fieild.

927


What is volatile, register definition in C

902


How do you redirect a standard stream?

869


How do I round numbers?

790


illustrate the use of address operator and dereferencing operator with the help of a program guys plzzz help for this question

1852


Explain what is a const pointer?

851


a c code by using memory allocation for add ,multiply of sprase matrixes

2545


What are the storage classes in C?

829


writ a program to compare using strcmp VIVA and viva with its output.

1788


Who invented b language?

1150


What is the use of header files?

837


What are the c keywords?

975


How can I split up a string into whitespace-separated fields?

821


1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if

4235