Ascii Value

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Object – Write a program to the ASCII value of

given character.

Code –
#include<stdio.h>
int main()
{
char ch;
printf ("enter a charcter=");
scanf("%C",&ch);
printf ("the ascii value of ch:
%d",ch);
}

Output –

You might also like