Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

11.5 (Find the largest & smallest element) Use pointers to write a function that finds the largest element in an array of integers. Also, write

11.5 (Find the largest & smallest element)

Use pointers to write a function that finds the largest element in an array of integers. Also, write another function that finds the smallest element in an array of integers. Use {6, 7, 9, 10, 15, 3, 99, -21} to test both functions.

NOTE: Solve using pointers arguments in a function call, not using Array functions.

Language is C++

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Students also viewed these Databases questions