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.

Back to Lab Problems
Sorting and 2d Arrays/Arithmetic/Problem #1

Lab Problem Statement

Specifications & Problem DetailsIIT Kharagpur PDS Archive
Loading question...

Interactive C Compiler · Problem #1

WASM In-Browser

Runs directly on your machine · Zero remote server dependency

Compiler downloads on first Run (large, saved in your browser after that)
main.cCtrl + Enter to run
1
2
3
4
5
6
7
Input (stdin)given to scanf / cin
Output

Output appears here. Press Run to compile and execute.