摘要: 宽字符: #define _CRT_SECURE_NO_WARNINGS #include<stdio.h> #include<string.h> #include<locale.h> int main() { char str[10]="轩辕"; printf("%d,%d\n",sizeof(s 阅读全文
posted @ 2014-09-29 23:25 我爱背单词 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 指针内存面试题: 对整个数组取地址+1前进了整个数组。再强转成double* 根据double*步长再减去1#include <stdio.h>int main(){ double db[5] = {1.0,2.0,3.0,4.0,5.0}; printf("%f\n", *((double *)( 阅读全文
posted @ 2014-09-29 23:01 我爱背单词 阅读(238) 评论(0) 推荐(0) 编辑