Pages

Monday, January 2, 2012

C Programming to display ASCII values

/* to display ASCII values */
#include<stdio.h>
#include<stdlib.h>
int main()
{
    int n;
    printf("Enter character: ");
    scanf("%c",&n);
    printf("The ASCII value of %c is %d",n,n);
    system("pause");
    return 0;
}

No comments:

Post a Comment