+ 2
Guys how to delete a number from array????Help
16 Réponses
+ 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
+ 1
ohh
i will be reinvent it tommorow
thank you very much for your effort
+ 1
i understood you Martin
+ 1
thank u very much for explaining
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..
0
thanks
0
man ,can you help ,and change my code
0
the first guy wrote ,it does not work
0
but Amine Laaboudi somehow did it wthout Dynsmic array,and there is nor zero ,the number really disappeared
0
look into