社区
C语言
帖子详情
The difference between '\0' and '0'?
aka2006
2003-10-23 08:29:19
The difference between '\0' and '0'?
...全文
62
5
打赏
收藏
The difference between '\0' and '0'?
The difference between '\0' and '0'?
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
mprogrammer
2003-10-23
打赏
举报
回复
'\0'是c语言中字符数组的结束标志,ASCII值为0;
‘0’代表字符0,ASCII值位30H, 48D。
双杯献酒
2003-10-23
打赏
举报
回复
'0' == 0x30 == 48
'\0' == 0x00 == 0
Hot_Forever
2003-10-23
打赏
举报
回复
the value of '\0' =0,means the end of a string
the value of '0'=48, just means a char
you may test by follows:
#include <stdio.h>
#include <conio.h>
int main()
{
char c='\0';
printf("%d\n",c);
c='0';
printf("%d\n",c);
getch();
return 0;
}
xdspower
2003-10-23
打赏
举报
回复
'\0'一般是定义为字符串结束符号,是不能显示的,最为整数时是值为0,'0'就是字符 '0',它显示时显示为一个字符'0' 它的字符编码不为0,故作为整数使用时不为0。
kuaibao
2003-10-23
打赏
举报
回复
i have nothing to say ~ find up in you books~
The
difference
between Failure and Success
The
difference
between failure and sucess is the
difference
between doing something almost right and doing something right.--Benjamin Frnaklin
The
difference
between the request time and the current time is too large
解决报错:The
difference
between the request time and the current time is too large
The timestamp
difference
between admin and executor exceeds the limit. at
The timestamp
difference
between admin and executor exceeds the limit. at 使用xxljob想调试定时器时,出现以上错误。 更新服务器时间后,得以解决。
异常:The
difference
between the request time and the server‘s time is too large.
VMware16.2.3版本centos7系统,部署的minIO对象存储使用minIOClient进行文件上传的时候报异常:The
difference
between the request time and the server's time is too large.
OSS报错The
difference
between the request time and the current time is too large
文件上传阿里云OSS报错:The
difference
between the request time and the current time is too large 2、原因 请求发起的时间超过OSS服务器当前时间15分钟,OSS判定该请求无效,返回报错。 3、解决方法 OSS的系统...
C语言
69,369
社区成员
243,082
社区内容
发帖
与我相关
我的任务
C语言
C语言相关问题讨论
复制链接
扫一扫
分享
社区描述
C语言相关问题讨论
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章