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
Get step-by-step solutions from verified subject matter experts
