int *z; z = (int *) malloc(sizeof(int)); // malloc returns (void *) representing a generic data type, cast it to the one we need