Insert Element at the End of an Array
Given an array of integers, the task is to insert an element at the end of the array. Examples: Input: arr[] = [10, 20, 30, 40], ele = 50Output: [10, 20, 30, 40, 50] Input: arr[] = [], ele = 20Output: [20] Table of Content [Approach 1] Using Built-In Methods[Approach 2] Using Custom Method[Approach