C examples for Data Type:Type Cast
Perform type casting when assigning dynamic memory to a variable for malloc() function.
#include <stdio.h> #include <stdlib.h> int main()// ww w . j a v a 2s . com { char *name; name = (char *) malloc(80); }