C PROGRAMMING
MULTIPLE CHOICE QUESTION
OLD QUESTION BANK
SAMPLE QUESTION 2080 AND SOLUTION

LAB 6- ARRAY

In this lab students will learn about 1-D array, 2-D array and function in array.

  1. WAP to sort an array in ascending  or descending order.
  2. WAP to find the largest  element in an array .
  3. WAP to read n numbers from the keyboard and store them in an array. Add even numbers and odd numbers separately and display the result. 
  4. WAP to define three user defined function for reading , processing and displaying of 2*3 matrices . Read the matrix in Read() function, multiply the matrix in Multiply() function  and display the matrix in Display() function. 
  5. WAP to read the order of a square matrix and its elements from the keyboard. Find the sum of diagonal elements of the matrix.