#include //#include int *count(int n){ if (n < 1) return NULL; int *p = malloc(n); if(p == NULL) return NULL; while (n != 0){ *(p + n-1) = n; n --; } return p; } /* int main(){ int *rslt = count(5); int index = 0; while(*(rslt + index)){ printf("%i", *(rslt + index)); index ++; } free(rslt); }*/