diff --git a/data_structures/array/carray.c b/data_structures/array/carray.c index 4d75ed54..58840f41 100644 --- a/data_structures/array/carray.c +++ b/data_structures/array/carray.c @@ -100,6 +100,8 @@ int updateValueCArray(CArray *array, int position, int value) { if (array->array[position] != 0) { + array->array[position] = value; + return SUCCESS; } else