find maximum or minimum number in array c++ | cpp programming video tutorial

Опубликовано: 07 Ноябрь 2024
на канале: it Tips
274
2

This video will help us to find maximum and minimum number out of array using CPP. To find maximum number from

the data set(array) mathematically following method is used:
1. Assume that the first available largest number.
2. Compare this with the successor.
3. If the next is greater that let the next number is greater.
4. Repeat the steps 2 and 3 till end of data set.
Similar process will be used to find minimum number out of an array.