C语言 【sizeof 】
1 #include <stdio.h> 2 3 int main() 4 { 5 6 char name[10]={2,3,4,5,6,7,8,9,10}; 7 8 printf("%d\n",sizeof(name)); /*sizeof()返回变量的大小。*/ 9 10 return 0; 11 }
一个二次元的生物
1 #include <stdio.h> 2 3 int main() 4 { 5 6 char name[10]={2,3,4,5,6,7,8,9,10}; 7 8 printf("%d\n",sizeof(name)); /*sizeof()返回变量的大小。*/ 9 10 return 0; 11 }