+ 2

Guys how to delete a number from array????Help

9th Dec 2020, 8:23 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
16 Respostas
+ 1
thanks for explain,but yes dynamic memory i’ve leant,but i dont learn the language in sololearn snd therefore i have many xp
9th Dec 2020, 10:55 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
+ 1
ohh i will be reinvent it tommorow thank you very much for your effort
10th Dec 2020, 12:18 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
+ 1
i understood you Martin
10th Dec 2020, 7:16 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
+ 1
thank u very much for explaining
10th Dec 2020, 7:17 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
suppose arr=[4,6,7,8,0,3,1] to delete or remove 8 from the array arr, in C language you can move all the numbers (from 0 to 1) to the left so that your array looks like : [4,6,7,0,3,1].. f.exp: for(int i=3;i<6;++i) arr[i] =arr[i+1]; this is mean you delete the fourth element in the array (cuz indexes start from 0).. in some languages you can type just remeve or erase or something like that anyway..
9th Dec 2020, 8:38 PM
Amine Laaboudi
Amine Laaboudi - avatar
0
thanks
9th Dec 2020, 10:10 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
9th Dec 2020, 10:45 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
man ,can you help ,and change my code
9th Dec 2020, 10:45 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
the first guy wrote ,it does not work
9th Dec 2020, 10:46 PM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
but Amine Laaboudi somehow did it wthout Dynsmic array,and there is nor zero ,the number really disappeared
10th Dec 2020, 12:21 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
10th Dec 2020, 12:21 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar
0
look into
10th Dec 2020, 12:21 AM
Aleks kryzhanivskyi
Aleks kryzhanivskyi - avatar