0

How to delete element in an statuc array

question belongs to all language

26th Aug 2018, 3:45 AM
Rishabh Sharma
Rishabh Sharma - avatar
1 Odpowiedź
+ 3
If what you mean is to delete an element such that the array's element count decreases, I doubt if it were possible, at least not without a trick, as the name implies, static means non-adjustable. However, placing an invalid data in place of the target element may be considered, that when being referred to, we simply skip the invalid data. Use of dynamic container is a viable solution, for this types of task, I suppose : )
26th Aug 2018, 7:08 AM
Ipang