Printing ASCII value in Hex

//Printing ASCII value in Hex
#include<stdio.h>
#include<conio.h>
int main()
{
char a;
clrscr();
printf("Enter a Character\n");
scanf("\n%c",&a);
printf("\nASCII value in Hex is %x",a);
getch();
return 0;
}

No comments:

Post a Comment