what is the difference between these two malloc functions?
char *s; //declaration
--> s = malloc(1024 * sizeof(char));
--> s=(char *)malloc(1024*sizeof(char));
Do here too, we need to typecast the malloc function if it is already declared in char