I was doing some C coding and after reading some C code I\'ve noticed that there are code snippets like
char *foo = (char *)malloc(sizeof(char) * someDynamicAmo
IMHO the best practice is to write sizeof(*foo). Then you're covered also if the type of foo changes and the sizeof is not corrected.
sizeof(*foo)