Challenge: Delete an Element at a Specific Index
Test your knowledge by solving a challenge in this lesson.
We'll cover the following
Problem statement
Your task is to write a function delete_element
. In its input parameters, the function will take:
-
Pointer
arr
of typeint
by reference. Pointerarr
is pointing to dynamically allocated array; -
Variables
size
andindex
of typeint
.
Get hands-on with 1400+ tech skills courses.