char ** fizzBuzz(int n, int* returnSize){ char** arr = (char**)calloc(n+1,sizeof(char*)); // const char* s35 = "FizzBuzz"; // const char* s3 = "Fizz"; // const char* s5 = "Buzz"; for (int i=0; i<n; i++) { arr[i] = (char*)calloc(20,sizeof(char)); if ((i+1)%3==0 && (i+1)%5==0) arr[i] = "FizzBuzz"; else if((i+1)%3==0) arr[i] = "Fizz"; else if((i+1)%5==0) arr[i] = "Buzz"; else sprintf(arr[i],"%d",i+1); } *returnSize = n; return arr; }