:
, c x : x - , char*, c - char[10], .
, x c : x, char. , c, char . ,
printf("sizeof(x) = %zd\n", sizeof(x));
printf("sizeof(*x) = %zd\n", sizeof(*x));
printf("sizeof(c) = %zd\n", sizeof(c));
sizeof(x) = 8
sizeof(*x) = 1
sizeof(c) = 10
64- . sizeof(x) , , sizeof(*x) , x, sizeof(c) , char .
, c , x C?
- . , , , . C , . - sizeof() ( , sizeof(x) != sizeof(c)), - &. c . , c[3]. *(c+3), c , c+3, . , , .
, , :
malloc() , , free() , malloc().
. malloc() . malloc() , . , - , . - . . , , .
, . , , , C. - , malloc'ed . , , .
char c[10];
( struct) . , main() ( main(), exit()).
char c[10];
. , , ( {}).
, .
char c[10];
a struct, -. , (struct). , , - , - , - , : ( ).