We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 2
C program to Insert an Element in an Array
Write a C Program to insert an element in an Array.
What is Array? An array is a collection of similar data elements stored in a contiguous memory location. Example: arr[5] = {2,7,1,23,5} The new element we are entering here is 15 and the position where the element must be inserted is “4”. C program to Delete an Element from an Array
An array is a collection of similar data elements stored in a contiguous
memory location. Example: arr[6] = {12,65,32,75,48,11} Value: 12 65 32 75 48 11 ↑↑↑↑↑↑ Index: 0 1 2 3 4 5 The Element we are deleting here is “75”.