Computers and Technology

Write a c++ console application that outputs the largest and smallest element of an array. your program should have three functions: a) initializearray: this function takes an integer array and its index and initializes each element using the rand() function; b) smallestindex: this functions takes as parameter an integer array and its size and returns the index of the first occurance of the smallest element in the array; c) largestindex: this functions takes as parameter an integer array and its size and returns the index of the first occurance of the largest element in the array; d) outputarray: this function takes as parameters an integer array, its size, the indeces to the largest and smallest element and the elements contained at those locations in the array. your program should not call all the functions in main.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 11:40, silviamgarcia
Pthreads programming: create and terminate a thread write a c++ program that creates a thread. the main will display a message “hello world from the main”. the main will create a thread that will display a message “hello world from the thread” and then terminates with a call to pthread_exit()
Answers: 3
image
Computers and Technology, 23.06.2019 16:00, natasniebow
Kenny works with an it company. his company is about to launch new software in the market. he has to ensure that this new software is functional and meets all of the quality standards set up at the planning stage. which job profile is kenny likely to have? kenny is likely to have the job profile of a blank .
Answers: 2
image
Computers and Technology, 24.06.2019 19:00, taridunkley724
Which of the following "invisible" marks represents an inserted tab?
Answers: 1
image
Computers and Technology, 25.06.2019 02:30, 30valgolden
Technology has changed communications by replacing or supplementing traditional modes of communication that were primarily
Answers: 2
Do you know the correct answer?
Write a c++ console application that outputs the largest and smallest element of an array. your prog...

Questions in other subjects:

Konu
Mathematics, 26.10.2019 02:43