C Program to find the ASCII value of a character

#include<stdio.h>

#include<conio.h>
char ch;
void main()
{
    printf("Enter a character: ");
    scanf("%c",&ch);
    printf("The ASCII value of that character is %d",ch);
    getch();

No comments:

Post a Comment