19 lines
231 B
C
19 lines
231 B
C
#include <stdio.h>
|
|
|
|
struct Student
|
|
{
|
|
|
|
char name[10];
|
|
char sex;
|
|
|
|
double score;
|
|
};
|
|
|
|
int main()
|
|
{
|
|
struct Student student;
|
|
|
|
printf("这个结构体的大小是:%ld个字节\n", sizeof(student));
|
|
|
|
return 0;
|
|
} |