+ 4
Zhenis Otarbay your statement is false. malloc() function returns void * (void pointer). You need to cast it to the pointer of your requirement, say char* (char pointer)
You would use it as below:
ptr = (cast-type*) malloc(byte-size)
The formal syntax is:
void *malloc(size_t size)