Pages

Friday, 18 May 2012

input a character and find out his ASCII value


6./*Write a program to input a character and find out his ASCII value*/

#include<stdio.h>
#include<conio.h>
main()
{
char ch='A';
clrscr();
printf("\n The Character is:%c",ch);
printf("\n The ASCII value of this character is:%d",ch);
getch();
}


OUTPUT
            The Character is : A
            The ASCII value is this character is:65

No comments:

Post a Comment