Write anoverloaded functionAdd( ) that takes two parameters ofthe same type.The possible types ofthe arguments are type double, int, and
char array[ ]. (Hint:define three Add().) Write a test driver and ask the user ifhe/she would like to add two doubles, two int, or two character
arrays. Inthe case ofaddingtwo char arrays, just output the two arrays one after the other usingtwo cout statements.

Write an overloaded function Add( ) that takes two parameters of the same type.The possible types of

  • 1.
    Write anoverloaded functionAdd() that takes two parameters ofthe same type.The possible types ofthe arguments are type double, int, and char array[ ]. (Hint:define three Add().) Write a test driver and ask the user ifhe/she would like to add two doubles, two int, or two character arrays. Inthe case ofaddingtwo char arrays, just output the two arrays one after the other usingtwo cout statements.