mirror of
https://github.com/TheAlgorithms/C
synced 2024-11-25 06:49:36 +03:00
Update 38.c
This commit is contained in:
parent
bf124ed91e
commit
94462f2fe6
@ -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';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user