博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
C程序打印一个字符的ASCII值
阅读量:2509 次
发布时间:2019-05-11

本文共 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/

你可能感兴趣的文章
IDEA中Git的使用
查看>>
War3模型导出
查看>>
java: 列出本机java环境
查看>>
Python内置函数(19)——eval
查看>>
怎样录制屏幕并将结果保存为Gif
查看>>
别名设置 alias
查看>>
练习3.34
查看>>
oracle加减操作
查看>>
dp乱写3:环形区间dp(数字游戏)
查看>>
【Beta阶段】启程会议——第零次Scrum Meeting!
查看>>
Apple Tree
查看>>
html5 七巧板
查看>>
JK_Rush关于索引的一些总结
查看>>
[Codevs] 线段树练习5
查看>>
Amazon
查看>>
component-based scene model
查看>>
Echart输出图形
查看>>
hMailServer搭建简单邮件系统
查看>>
从零开始学习jQuery
查看>>
Spring+SpringMVC+MyBatis深入学习及搭建(四)——MyBatis输入映射与输出映射
查看>>