https://github.com/Infatoshi/cuda-course/blob/master/03_C_and_C%2B%2B_Review/01%20Pointers/04.c test.cu(22): error: a value of type "void *" cannot be assigned to an entity of type "int *" ptr = malloc(sizeof(int)); ^
https://github.com/Infatoshi/cuda-course/blob/master/03_C_and_C%2B%2B_Review/01%20Pointers/04.c
test.cu(22): error: a value of type "void *" cannot be assigned to an entity of type "int *"
ptr = malloc(sizeof(int));
^