Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C program that finds the minimum and maximum elements in an integer array with 10 elements. Use a pointer to read in and

image text in transcribed
image text in transcribed
Write a C program that finds the minimum and maximum elements in an integer array with 10 elements. Use a pointer to read in and print the elements of the array and to find the minimum and maximum elements in the array. Print the value of the minimum element, the value of the maximum element, the indexes of the minimum and maximum elements, and their addresses in memory. Example Output Enten 10 elements: 75 89 344 5 0 7 5 You Entered: 75 893 44 5 0 7 5 The minis 0, found in the index 7. in the address 0061FEC8 The max is 44. found in the index s, in the address 0061FECO Rubrics noint. Ilsing ninters Example Output Enter 10 elements: 7 5 8 9 3 44 5 0 7 S You Entered: 7.5 8 9 3 44 5 0 7 5 The min is 0, found in the index 7, in the address 0061FEC8 The max is 44, found in the index S, in the address 0061FECO Rubrics 4 point(s): Using pointers. 2 point(s): Using scanf(). 2 point(s): Correct output. 2 point(s): No syntax errors

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

Intelligent Databases Technologies And Applications

Authors: Zongmin Ma

1st Edition

1599041219, 978-1599041216

More Books

Students also viewed these Databases questions