KEMBAR78
Array Day-9 Prog | PDF
0% found this document useful (0 votes)
16 views16 pages

Array Day-9 Prog

The document outlines various tasks related to array manipulation, including creating arrays, printing elements, summing values, and finding the largest and smallest elements. It also includes assignments for merging arrays, rotating elements, and removing duplicates. Additionally, it addresses finding unique elements and handling missing numbers in an array.

Uploaded by

Vasanth Vakati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views16 pages

Array Day-9 Prog

The document outlines various tasks related to array manipulation, including creating arrays, printing elements, summing values, and finding the largest and smallest elements. It also includes assignments for merging arrays, rotating elements, and removing duplicates. Additionally, it addresses finding unique elements and handling missing numbers in an array.

Uploaded by

Vasanth Vakati
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Arrays

06 February 2025 20:08

1.Create an array of user wish size


insert the elements in array acc to user

2.Print Array from right to left


3.Sum of Array Elements
4.Use Pass by ref Concept and Print Arrays
5.Copy One Array Elements into another Array
6.Reverse
A)Modify Array
B)Print in Reverse
7.Even Elements Sum
8.Odd Index Element Sum
9.Assignment
Input : a: 'A','B','C','D','E'
Note:a array is char[] and res [] is integer Array
o/p : res 69 , 68 ,67,66,65

10.Find the Largest Element in Array


Input : a: 5,1,2,7,56,12
o/p=56
Assignment
11.Find the Smallest Element

12.Merge the Array


Input :A:10 20 30 40 b:50 60 70 80
o/p :res<--10 20 30 40 50 60 70 80
13.Assignment
12.Merge the Array in reverse Format (Assignment)
Input :A:10 20 30 40 b:50 60 70 80
o/p :res<--10 20 30 40 80 70 60 50

13.input :a 10,20,30,40 b:50,60,70,80 (Zig Zag) Assignment


output:res<--10 50 20 60 30 70 40 80

14.Rotation Right
Input:
a n:3
10 20 30 40 50

Output:
Res
40 50 10 20 30
15.Rotation Assignment left
Input:
A n=2
10 20 30 40 50

Output:
40 50 10 20 30

16.Missing Number

Input: 1,2,3,5,8
Output:4,6,7
17.Input:[0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1]
Output:[1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0]
18.Remove Duplicates
Input:[8, 6, 8, 4, 1, 3, 4]
Output:[8, 6, 4, 1, 3]
19.Find Unique Elemets
Input:[1, 2, 3, 4, 1, 2, 3, 4]
Output:-1
Input:[5, 1, 5, 3, 6, 3]
Output:1, 6

You might also like