Friday, 5 January 2018

ASCII Value of a character

C Program to Convert a character to its equivalent ASCII Value.

#include<stdio.h>

int main()
{

    char ch;


    printf("Enter a character: ");


    scanf("%c",&ch);


    printf("\nThe ASCII Value of %c is %d\n",ch,ch);


    return 0;


}




No comments:

Post a Comment

Featured Post

TCS Latest Test Patern ( For On-Campus Drives )

Tata Consultancy Services is software services consulting company whose  headquarter is situated in Mumbai, India. It is the Asia’s larges...