I\'ve tried using a tripple pointer, but it keeps failing. Code:
#include
#include
int set(int *** list) {
int count, i;
As far as I understand your question you want to return an array which is allocated in another function : here is the simple version of this
#include
#include
int* set(int *list) {
int count, i;
printf("Enter number:\n");
scanf("%d", &count);
list = (int *) malloc ( sizeof (int) * count);
for ( i = 0; i