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 }
sizeof返回变量的大小

 

posted @ 2018-07-31 16:24  Justice-V  阅读(46)  评论(0)    收藏  举报