标签:
// sizeof里边放数组名,传首元素地址 #include <stdio.h> void example(char acHello[]) { printf("%d\n", sizeof(acHello)); return 0; } int main() { char acHello[] = "hello,tu_lun"; example(acHello); return 0; }
标签:
原文地址:http://blog.csdn.net/zhaoyaqian552/article/details/45581957