Introduction
Finding the largest and smallest element in an array is a common problem in programming. In this lab, you will learn how to write a C program to find the largest and the smallest elements in an array using a step-by-step approach.
Note: You need to create the file
~/project/main.c
yourself to practice coding and learn how to compile and run it using gcc.
cd ~/project
## create main.c
touch main.c
## compile main.c
gcc main.c -o main
## run main
./main