The document outlines a series of programming assignments for B.Tech students focusing on 2D and 1D arrays in C. Tasks include matrix addition and multiplication, calculating sums and averages, finding common elements, and identifying maximum and minimum values in arrays. Each assignment specifies input and expected output to guide the implementation.
The document outlines a series of programming assignments for B.Tech students focusing on 2D and 1D arrays in C. Tasks include matrix addition and multiplication, calculating sums and averages, finding common elements, and identifying maximum and minimum values in arrays. Each assignment specifies input and expected output to guide the implementation.
1. Develop a program to perform addition of two matrix using 2d array.
2. Develop a program to perform multiplication of two matrix using 2d array. 3. Write a program to find the sum of the elements of a 2D array. 4. Write a program to find the sum of the diagonal elements of a 2D array. (3*3 5. Develop a program to print sum of second and second last element of an array. 6. Develop a program to count odd and even elements of an array. 7. Develop a program to calculate sum of n array elements in C. 8. C Program to Find Common Array Elements Input: a[6] = {1,2,3,4,5,6} b[6] = {5,6,7,8,9,10} Output : Common array elements is 5 6 9. C Program to Calculate the Average of All the Elements Present in an Array : Input: arr[] = {1, 2, 3, 4, 5} Output: 3 10.Write a C program to declare an array of integers and initialize it with values from 1 to 10. Print all the elements of the array 11.Write a C program to declare an array of integers and initialize it with values from 1 to 10. Print all the elements of the array 12.C Program to Find the Maximum and Minimum in an Array Input: arr[] = {1, 2, 4, -1} Output: The minimum element is -1 The maximum element is 4