Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and medical aesthetics - Why can plastic data be written into the character array as shown in the figure?
Why can plastic data be written into the character array as shown in the figure?
The smallest physical storage unit in a computer is a byte.

Char xx[20], such a variable declaration, is regarded as a buffer.

For example, if I write like this, it means that this space can hold 20 bytes. Of course, I can save an integer. Why can't I write it in?

How is the memory of c89 allocated? Is it char *p = malloc(sizeof(int))? You'll know if I'm right.