Function Overloading

  1. Define two functions display(char []) and display(char [], char[]).
  2. The first function will display the argument with a newline character.
  3. The second function will display a horizontal separator composed of equal signs ('='), then display an argument in a line, and end with a horizontal separator again.
  4. Test your functions with the following main program:
    
    int main()
    {
       char first[] = "C programming";
       char second[] = "is interesting";
     
       display(first);
       display(first, second);
     
       return 0;
    }
    
    
  5. The output should be
    
    C programming
    ==============
    C programming
    is interesting
    ==============