常见sizeof 笔试题
摘要:
最近面试过程中遇到了很多很多sizeof的问题。现在总结一下:#include #include void fun(int array[], char *str){ printf("sizeof(array) : %d\n", sizeof(array)); printf("sizeof(str) : %d\n", sizeof(str)); printf("sizeof(str + 10) : %d\n", sizeof(str + 10));}int main(){ int arrar[100] = {0}; int arr_se 阅读全文
posted @ 2014-03-20 18:33 marcus.x 阅读(459) 评论(0) 推荐(0) 编辑