本文共 454 字,大约阅读时间需要 1 分钟。
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char ch;
clrscr(); //to clear the screen
printf(“Enter any character:”);
scanf(“%c”,&ch);
a=ch;
printf(“ASCII value of %c is %d”,ch,a);
getch(); //to stop the screen
}
#include<stdio.h>
#include<conio.h>
void main()
{
int a;
char ch;
clrscr(); //to clear the screen
printf(“Enter any character:”);
scanf(“%c”,&ch);
a=ch;
printf(“ASCII value of %c is %d”,ch,a);
getch(); //to stop the screen
}
翻译自:
转载地址:http://mrwwd.baihongyu.com/