Javascript Delete Element From Array C Programming