C语言基础:获取数组的长度
#include <stdio.h>
int main(void)
 {
   int scores[100];
   float salaries[100];
   char string[100];
   printf("Bytes used to hold int scores[100] is %d bytes\n",
     sizeof(scores));
   printf("Bytes used to hold int salaries[100] is %d bytes\n",
     sizeof(salaries));
   
   printf("Bytes used to hold char string[100] is %d bytes\n",
     sizeof(string));
return 1;
 }
