Gday,

Just wondering, i have read a fair bit that you shouldn't cast malloc and i am just wondering what casting actually is e.g

from another post
Code:
example t=(char*)malloc(26 * sizeof(char));
prelude said not to cast malloc,

can someone explain what this casting is and how it has been done in this example. and what to do instead?

Thanks