Friday, September 25, 2015

TO GET ASCII VALUE USING C PROGRAM



To get ascii value using c program is given below: -

/*
    WAP to enter value as a char form and get ascii value.
    Developer: - Raushan Kumar
    Date: - 26-09-2015
*/
#include <stdio.h>
#include <stdlib.h>

int main()
{
    char ch;
    printf("Enter a character:-");
    scanf("%c",&ch);
    printf("Ascii Value of %c=%d",ch,ch);
    return 0;
}
Output
Enter a character:-A
Ascii Value of A=65

Click here to get source code in above program

TO VIEW ALL ASCII VALUE


0 comments:

Post a Comment