warning: implicit declaration of function 'malloc' [-Wimplicit-function-declaration] arr = (int*)malloc(num * sizeof(int)); code example
Example: incompatible implicit declaration of built-in function ‘malloc’
Insert:
#include <stdlib.h>
Insert:
#include <stdlib.h>