Ticker

6/recent/ticker-posts

Find ASCII value of a character

 Find ASCII Value of a Character.



#include <stdio.h>

void main()

{

    char ch;

    printf("Enter a Char:-");

    scanf("%c",&ch);

    printf("%d\n",ch);

}



output:

Enter a Char:-A

65

కామెంట్‌ను పోస్ట్ చేయండి

0 కామెంట్‌లు