Question: 1- Write a template function that swaps the values of two variables of the same data type, test the program with floats, integers and characters.

1- Write a template function that swaps the values of two variables of the same data type, test the program with floats, integers and characters.

2- Write a generic function (a template) that takes an array and returns true if all of the elements of the array are unique, test the program with integers and characters.

put the code for both tasks and screenshots in the same Microsoft word document and upload it

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!