Sorting and 2d Arrays – Arithmetic – Problem #1
IIT Kharagpur CS10001 / CS11001 Programming and Data Structures Lab Question Archive
Difficulty: medium
Problem Statement
2. Write a C program with the following functions: a) main: Dynamically allocate a two dimensional integer array whose dimensions would be input by the user. Fill the array with randomly generated numbers between 0 and 100, i.e. [0,100]. Display the array in a properly formatted form. Call the function findMinMax with the 2D array as a parameter. b) findMinMax: Find the smallest and the largest of all the numbers present in the array and display them along with the row and column numbers at which they are present.