Wednesday, 30 September 2015

WAP to input a character and print its ASCII

#include<stdio.h>
#include<conio.h>
void main()
{
    char c;
    clrscr();
    printf("Enter a character: ");
    scanf("%c",&c);
    printf("ASCII value of %c = %d",c,c);
    getch();
}




No comments:

Post a Comment