2
Data Types in C
3
An array is a sequenced collection of elements of the same data
type. It is simply a grouping of like-type data.
Some examples where the concept of an array can be
used:
4
Types of arrays
1. One-dimensional arrays
2. Two-dimensional arrays
3. Multidimensional arrays
5
6
7
8
9
10
11
12
13
14
15
Problem statement
We are given an array (or a list) of data. We are also given a
way to “orderˮ the elements present in the data. Now, we are
asked to arranged the data as per the given order. Example:
Input: 5, 1, 4, 2, 8
Output: 1, 2, 4, 5,8
16
17
18
C program to find largest number in an array
19
20
C Multidimensional Arrays
int
x[4][3];
21
22
Write a C program to find the transpose of a matrix
23
24
25