The first line indicates the pointer (void), which malloc returns to a pointer to char, thereby preserving it as its pointer. All this tells the compiler that "memory at location X should be treated as an array of characters."
The second throw turns the pointer returned by malloc into one character. This is bad for several reasons:
- You are losing the pointer because you just turned the pointer into something completely different.
- , ( 32 64 , 8 ), "" .
, , , .