Remove Object From Array Using Function In C