码迷,mamicode.com
首页 > 其他好文 > 详细

给char赋16进制

时间:2020-02-19 17:14:14      阅读:45      评论:0      收藏:0      [点我收藏+]

标签:target   get   hid   tar   tps   转义字符   http   nbsp   https   

十六进制: char c = ‘\x22‘; \x是十六进制转义字符的标志

 

char a[3] = {(char)0x32,(char)0x55,(char)(0xff)};

 

 char *a="\x01\x66\xff";

 

给char赋16进制

标签:target   get   hid   tar   tps   转义字符   http   nbsp   https   

原文地址:https://www.cnblogs.com/mydriverc/p/12331744.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!