Update 38.c

This commit is contained in:
batyil 2019-10-31 07:11:22 +03:00 committed by GitHub
parent bf124ed91e
commit 94462f2fe6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ char * countAndSay(int n){
int k, j, count, convert = (int) result;
//Creating array with the length calculated above
char * arr = malloc(result + 4);
char * arr = malloc(convert + 4);
arr[0] = '1';
arr[1] = '\0';