Question: Need help on my code language is c++ Finding largest number in my array. i am using the special function max_element but i am not

Need help on my code language is c++ Finding largest number in my array.

i am using the special function max_element but i am not sure what i am doing wrong not giving me the expected output i need.

expected output

Enter a unique integer between 1-49.

23

Enter a unique integer between 1-49.

4

Enter a unique integer between 1-49.

33

The value at index [0] is 46.

The value at index [1] is 8.

The value at index [2] is 66.

The largest value is 66.

MY OUTPUT

Need help on my code language is c++ Finding largest number in

lab25.cpp

my array. i am using the special function max_element but i am

MY POINTER.CPP FILE

not sure what i am doing wrong not giving me the expected

POINTER.H

output i need. expected output Enter a unique integer between 1-49. 23

Enter a unique interger between 1-49. nique interger between 1-49. nique interger between 1-49. 23 4 The value at index [0] is 46 The value at index [1] is 8 The value at index [2] is 66. The largest value is 6300064

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!