程序员面试宝典笔记(欧立奇版)

printf()函数计算参数是从右向左入栈的。
*(ptr++)+=123;含义为*ptr=*ptr+123;ptr++;//括号的优先级比*低

float a=1.0f;
cout<<(int&)a<<endl;
//浮点数在内存里和整数的存储方式不同,(int&)a相当于将浮点数地址开始的sizeof(int)个字节当作int型数据输出
//float a=1.0f在内存中的表示都为3f800000
//即输出1065353216

猜你喜欢

转载自blog.csdn.net/qq_22753933/article/details/83097281
今日推荐