![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
c
文章平均质量分 53
SugarWill
这个作者很懒,什么都没留下…
展开
-
c 迷惑1
1.#include using namespace std;void fun(int b[100]){cout //4}int main(){int *p = NULL;sizeof(p); //4sizeof(*p);//4sizeof(int) *p; //error 4不能乘以指针int a[100];co原创 2017-07-19 10:14:57 · 366 阅读 · 0 评论 -
大端模式小端模式
大端模式:字数据的高字节存储在低地址中,而字数据的低字节存放在高地址中。小端模式:字数据的高字节存储在高地址中,而字数据的低字节则存放在低地址中。检查系统是大端模式还是小端模式int checkSystem(){union check{int i;char ch;}c;c.i = 1;return (c.h==1);//等于1,小端模式}原创 2017-07-19 10:57:19 · 357 阅读 · 0 评论 -
c 迷惑2
1.#include enum Color{GREEN = 1,RED,GREEN_RED = 10,GREEN_BLUE,}ColorVal;int main(){printf("%d\n",ColorVal);//0printf("%d",sizeof(ColorVal));//4return 0;}2.t原创 2017-07-19 17:10:09 · 473 阅读 · 0 评论