Hi everyone, I am learning the malloc function and I have some questions that I am struggling to understand by myself.
These two expression are the same?
int var=(int*)malloc(4 * sizeof(int));
int *var=malloc(4 * sizeof(int));
and finally what is the difference from this expression?
int *var=(int*)malloc(4 * sizeof(int));
Thanks in advance